[ZPT] Confused about Zope
Shane Hathaway
shane@zope.com
Mon, 03 Mar 2003 12:21:03 -0500
Magnus Heino wrote:
>>>Can this be used inside script and style tags?
>>
>>Well, I don't think we should mix XML TAL and non-XML TAL in the same
>>document, even in script and style tags, if that's what you mean. But
>>your next sentence suggests that's not what you mean. :-)
>
>
> Right. However, should "text templates" support METAL?
>
> If so, you could put javascript in a "text template", make it define a macro,
> include that macro in a page template, and have it render itself in the
> context of the page template...
Using an implementation I have in mind, that would work. Text templates
would produce the same byte code as page templates.
> What also would be really nice is the i18n-namespace in js files. I don't know
> a good way to translate strings in a javascript today?
Interesting idea.
>>>Today (in cmf) I move any css to a .css.dtml-file, and any javascript to
>>>a .js.dtml-file.
>>
>>Today we have "page templates"; perhaps in the future we could put
>>non-XML TAL in "text templates". Then we could register the .css and
>>.js extensions as text templates.
>
>
> Yes, this would be a great thing.
>
> Hm, thinking of "text templates" I remembered this thing;
>
> http://www.zope.org/Members/lalo/TextTemplates
Cool! If we configured lalo's product to use angle brackets, we might
have a working prototype.
Shane