#522 open
Betelgeuse

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages