dryml parser should fail when trying to use default content but the tag doesn't support it
Reported by Betelgeuse | November 1st, 2009 @ 09:57 AM | in Beyond Hobo 1.0
In application.dryml:
<def tag="default-test-no-default">
<body param>default - no default</body>
</def>
<def tag="default-test-with-default">
<body param="default">default - with default</body>
</def>
In test.dryml:
<default-test-no-default>content inside tag - no default</default-test-no-default>
<br />
<default-test-no-default><body:>content inside tag - no default</body:></default-test-no-default>
<br />
<default-test-with-default>content inside tag - with default</default-test-with-default>
This renders:
default - no default
content inside tag - no default
content inside tag - with default
The first call in test.dryml is wrong as far as I know so the
dryml parser should fail with an
error explaining to the user that default-test-no-default doesn't
have a default parameter so
content doesn't get used.
Comments and changes to this ticket
-
Bryan Larsen November 1st, 2009 @ 03:05 PM
- Tag changed from dryml, usability to dryml, enhancement, usability
I think fixing #521 will also fix this one. However, I'll leave it open in case it's different.
-
Tom Locke November 17th, 2009 @ 04:03 PM
- State changed from new to open
- Milestone set to Beyond Hobo 1.0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป