[ZPT] Confused about Zope
Magnus Heino
magnus.heino@pleon.sigma.se
Mon, 3 Mar 2003 18:10:36 +0100
> > 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...
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?
> > 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
--
/Magnus