RejectedSoftware Forums

Sign up

Tags without content

The meta tag should have any content, but vibe automatically adds
it. Is it possible to override this functionality without
resorting to plain html?

Example:
meta()
results in
<meta></meta>
but I'd like
<meta/>

Re: Tags without content

Am 30.08.2012 12:38, schrieb simendsjo:

The meta tag should have any content, but vibe automatically adds it. Is
it possible to override this functionality without resorting to plain html?

Example:
meta()
results in
<meta></meta>
but I'd like
<meta/>

That's a bug and is fixed now. I added 'meta' to the list of tags with
no content in diet.d. Generally it should be the Diet parser's
responsibility to enforce proper HTML ouput; so overriding functionality
in this case should not be necessary.

Re: Tags without content

On Thursday, 30 August 2012 at 11:33:45 UTC, Sönke Ludwig wrote:

Am 30.08.2012 12:38, schrieb simendsjo:

The meta tag should have any content, but vibe automatically
adds it. Is
it possible to override this functionality without resorting
to plain html?

Example:
meta()
results in
<meta></meta>
but I'd like
<meta/>

That's a bug and is fixed now. I added 'meta' to the list of
tags with no content in diet.d. Generally it should be the Diet
parser's responsibility to enforce proper HTML ouput; so
overriding functionality in this case should not be necessary.

Thanks. For some reason I thought the template engine was very
general and not directly tied to html.

Re: Tags without content

On Thursday, 30 August 2012 at 11:33:45 UTC, Sönke Ludwig wrote:

Am 30.08.2012 12:38, schrieb simendsjo:

The meta tag should have any content, but vibe automatically
adds it. Is
it possible to override this functionality without resorting
to plain html?

Example:
meta()
results in
<meta></meta>
but I'd like
<meta/>

That's a bug and is fixed now. I added 'meta' to the list of
tags with no content in diet.d. Generally it should be the Diet
parser's responsibility to enforce proper HTML ouput; so
overriding functionality in this case should not be necessary.

"meta" is now listed twice in diet.d:459.
Removing one of these makes it compile, but it's not closed
properly. It's expanded as <meta>, not <meta/>.

Re: Tags without content

Am 30.08.2012 14:32, schrieb simendsjo:

On Thursday, 30 August 2012 at 11:33:45 UTC, Sönke Ludwig wrote:

Am 30.08.2012 12:38, schrieb simendsjo:

The meta tag should have any content, but vibe automatically adds it. Is
it possible to override this functionality without resorting to plain
html?

Example:
meta()
results in
<meta></meta>
but I'd like
<meta/>

That's a bug and is fixed now. I added 'meta' to the list of tags with
no content in diet.d. Generally it should be the Diet parser's
responsibility to enforce proper HTML ouput; so overriding
functionality in this case should not be necessary.

"meta" is now listed twice in diet.d:459.
Removing one of these makes it compile, but it's not closed properly.
It's expanded as <meta>, not <meta/>.

Arrgh... that's what you get if you are unable to sort things by
alphabet I guess.

Anyway, it turned out that singular elements were only implemented half
way, dispite my beliefs. Now everything should work (at least it does
for my tests).

Re: Tags without content

On Thursday, 30 August 2012 at 12:52:03 UTC, Sönke Ludwig wrote:

way, dispite my beliefs. Now everything should work (at least
it does
for my tests).

Works for me too. Thanks.