I'm so -1 that -NaN doesn't begin to describe the downvote. Why pollute
html with something that is marginally useful only in debug ?
On Thursday, September 18, 2014 2:43:03 PM UTC+2, Robin Manoli wrote:
>
> 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 -->')*
> Edit: perhaps since this feature might only be sensible for this case,
> there could be a new attribute for html helpers called something like
> end_comment which writes out *<!-- /.class -->* or *<!-- /#id -->*
>
> 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.