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 this.

Michael

On Thu, Aug 12, 2010 at 6:47 PM, Tim Matthews <tim.matthews7@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).

Thanks

Tim M



_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel