Re: Issue 6 in ezt: Nested [format] blocks don't have the expected effect.

7 views
Skip to first unread message

e...@googlecode.com

unread,
May 21, 2010, 10:58:22 AM5/21/10
to ezt-d...@googlegroups.com

Comment #6 on issue 6 by cmpilato: Nested [format] blocks don't have the
expected effect.
http://code.google.com/p/ezt/issues/detail?id=6

Ah, okay. Well, glad the behavior is present! A little disappointed that
the design
is so... unique and non-obvious, but I understand how it can be
beneficial. (Though,
I'd argue that supporting stacking and added a de-formatting operator might
have been
a more obvious thing:

[format "html"] ... [format "!html"][preescaped_data][end] ... [end]

--
You received this message because you are subscribed to the Google Groups "EZT Discussion" group.
To post to this group, send email to ezt-d...@googlegroups.com.
To unsubscribe from this group, send email to ezt-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ezt-discuss?hl=en.

Greg Stein

unread,
May 21, 2010, 11:10:16 AM5/21/10
to ezt-d...@googlegroups.com
Well... on applications that generate web pages, I instantiate all
templates using HTML escaping for the default, so a [format "html"]
isn't needed anywhere. Thus, any [format] invocations are for the
special cases. Since there isn't a [format "html"] present in the
file, then doing [format "!html"] would be a bit strange. Nothing to
pair up.

I look at [format] as absolute ("this is the format for this block").
You look at them as scoped.

I say: change your outlook :-) ;-)

Cheers,
-g

C. Michael Pilato

unread,
May 21, 2010, 11:13:33 AM5/21/10
to ezt-d...@googlegroups.com
Greg Stein wrote:
> Well... on applications that generate web pages, I instantiate all
> templates using HTML escaping for the default, so a [format "html"]
> isn't needed anywhere. Thus, any [format] invocations are for the
> special cases. Since there isn't a [format "html"] present in the
> file, then doing [format "!html"] would be a bit strange. Nothing to
> pair up.
>
> I look at [format] as absolute ("this is the format for this block").
> You look at them as scoped.
>
> I say: change your outlook :-) ;-)

Alright. I see how it's gonna be, then.

;-)

--
C. Michael Pilato <cmpi...@red-bean.com> | http://cmpilato.blogspot.com/
Reply all
Reply to author
Forward
0 new messages