TAG['link/'](_href=...) To generate a self-closing tag, the tag name must end with a "/", so to do that, you need to use the TAG["tagname"] syntax instead of TAG.tagname.
Anthony On Friday, February 21, 2014 4:43:08 PM UTC-5, User wrote: > > How can I generate a self-closing tag ( > http://dev.w3.org/html5/html-author/#start-tag) or void element using the > TAG helper? > > For example, in the header I want to generate: > > <link rel="next" href="http://example.com/article?pg=2"> > > > or > > <link rel="next" href="http://example.com/article?pg=2"/> > > > However using TAG.link(_rel='next', _href='http://example.com/article?pg=2') > generates: > > <link rel="next" href="http://example.com/article?pg=2"></link> > > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

