On Wednesday 06 June 2001 12:28, Chuck Esterbrook wrote:
> Have you tried it? It's 2 lines:
> >>> from TemplateServer.Server import TemplateServer as
> >>> ts print ts('$a', {'a':1})
> $a
> Doesn't work for me. What about you?
Yes, it works fine with ver 0.8.2, though I can't vouch for 0.8.1.
It also passes all 143 test cases.
> >CHANGES TO NOTE:
> >- the explicit tag closure is now /#
> Does that mean that
> #end if
> no longer works?
You're referring to the end tag. I'm referring to
the explicit tag closure. Remember it used to be ;#
Implicit closures are the end of the line.
But also remember that we scrapped #end if in favour of
#/if many weeks ago.
> >- <# multi-line comments #> are now #comment /# ...
> > #/comment/#
>
> You mean:
> <#
> blah blah
> #>
> becomes:
> #comment /#
> blah blah
> #/comment/#
> ???
> That seems arcane at best. Why is there /# after the
> first #comment? Why does it end with #/comment/#?
See above about the /# bit.
It would look like this with implicit end-of-line closures:
#comment
blah blah
#/comment
## is still a single line comment.
I'm not totally set on this but, the reason I changed it
from <# #> was to make it
symmetrical with the rest of the directives.
I want to have only 2 tag types in TemplateServer:
$placeholders and #directives. Comments should be a type
of directive <# #> doesn't fit with the rest of the syntax. Ian
suggested #comment.
Velocity uses #* blarg *# for multiline comments. I could go
for that as well. It's almost symmetrical.
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel