[Zope-dev] Page Templates: Any plan how to use PT's for I18n and browser dependant templates etc?

Evan Simpson evan@4-am.com
Tue, 3 Apr 2001 15:35:52 -0500


From: "Johan Carlsson" <johanc@torped.se>
> Now comes the tricky thing, case I want to render with the tal tags
> intact. I just tested that and they are intact after render. Jippi!

This will be optional in ZPT 1.1, most likely.

> The next step I want to do is to save the template back to Zope
> and extract some of the tal:content tags and save them back to
> my_content.

Wha?  You want to parse out the rendered contents of some tags and save
them?  Will the user be editing the rendered page somehow?

> I noticed that I can access the macros of a METAL template
> after its been cooked (or used anyway).
> Is there anyway to parse a TAL template to extract part form it,
> preferably from Python?

You could use the same code that TAL itself does, I guess.  What are you
trying to accomplish?

Cheers,

Evan @ digicool & 4-am