Skip to content

Self-closing tag generation with TAG helper #171

Closed
lightdot opened this Issue Feb 22, 2014 · 2 comments

4 participants

@lightdot

Self-closing tags can be generated with the TAG helper. This is useful and could be added to the book (Custom helpers, TAG; 05.markmin around line 1214), along the lines of:

To generate a self-closing tag, the tag name must end with a "/".

{{=TAG['link/'](_href='http://web2py.com')}}

generates the following XML:

<link href="http://web2py.com"/>
@timrichardson

I made a PR to add this, thanks.

@BuhtigithuB
Collaborator

@timrichardson, can you reference the PR and can we close this one?

@mdipierro mdipierro closed this Apr 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.