[web-devel] Comments in Hamlet
michael at snoyman.com
Thu Aug 12 14:04:47 EDT 2010
I'm talking about the latter: inserting comments that only exist in the
template and make no appearance in the generated HTML at all.
The reason to avoid the double dash is that it adds a brand new "special
string" to Hamlet. Frankly, I don't think a double dash is so uncommon--
it's often times used instead of an mdash, so I'd be very wary of doing
On Thu, Aug 12, 2010 at 6:47 PM, Tim Matthews <tim.matthews7 at gmail.com>wrote:
> Are you meaning add an extra syntax to conveniently output "<!-- comment
> -->" or a comment that only exists in the hamlet template and not within the
> generated html output?
> The former seems less useful, on the rare occasion "<!-- comment -->" is
> required I will type it directly. This would seem like a waste of syntax if
> it didn't get used enough.
> For the latter though why can't you make regular double dash '--' as the
> comment to maintain consistency for when the hamlet is written quasi quoted
> within haskell source? (Currently it ends up in the generated html).
> Tim M
> web-devel mailing list
> web-devel at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel