Because html comments are part of the html language so why shouldn't they
have a helper? It is particularly useful when writing widgets with html
helpers and informing when they end, such as
*<DIV class="my-widget"> ...lots of code</DIV><!-- /.my-widget-->*
which would be written as:
*DIV( ..., _class='my-widget' ) + COMMENT('/.my-widget')*
because it is much cleaner than
*DIV( ..., _class='my-widget' ) + XML('<-!-- /.my-widget -->')*
Den torsdagen den 18:e september 2014 kl. 13:00:08 UTC+2 skrev Leonel
Câmara:
>
> There's no built-in way. Why would you want this?
>
>
>
--
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/d/optout.