Crap. Lets try this again without tabbing onto the send button.
On 1/12/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
Not wanting to disagree with the glorious leader :-), but I have to say I like the idea.
First off; comments should always be encouraged, and the easiest way to make something happen is to make it easy to do. {% comment %} {% endcomment %} is kinda long winded. Make the comments easy to type, and there is a lower barrier to entry. Plus, it makes life easier if you want to quickly comment out a block of template code.
Second, the {# #} choice suggested has nice symmetries with Python (in that it uses the # character).
Third, the "three types of tag" thing isn't difficult to explain in documentation:
- a { } block is a template operation
- Inside a {} block, you can use:
- {} for a literal or filtered substitution
- %% for some logic
- ## for a comment
My 2 c. But then, thats AU cents, so it's only 1.3 c US...
Russ Magee %-)
On 1/11/06, scum <[EMAIL PROTECTED]> wrote:
> Could the comment tag be simplified to something like {! !} or {# #}.
We've already got two different types of tags -- {% %} and {{ }} --
and introducing a third would be too complex for my tastes.
Not wanting to disagree with the glorious leader :-), but I have to say I like the idea.
First off; comments should always be encouraged, and the easiest way to make something happen is to make it easy to do. {% comment %} {% endcomment %} is kinda long winded. Make the comments easy to type, and there is a lower barrier to entry. Plus, it makes life easier if you want to quickly comment out a block of template code.
Second, the {# #} choice suggested has nice symmetries with Python (in that it uses the # character).
Third, the "three types of tag" thing isn't difficult to explain in documentation:
- a { } block is a template operation
- Inside a {} block, you can use:
- {} for a literal or filtered substitution
- %% for some logic
- ## for a comment
My 2 c. But then, thats AU cents, so it's only 1.3 c US...
Russ Magee %-)
