Because of installation problems, Paste now uses Tempita instead of
Cheetah. Tempita is also able to run arbitrary Python, so you can
have arbitrarily complex substitution.
> Is it possible to use PasteScript from python code with complex in
> order to profit from the two worlds :
> - Paste file templating system;
> - Cheetah file templating system.
>
> If not, is there any python product which can do that ?
You mean, invoke what Paste Script does without using "paster create"?
Yes, probably you could simply use paste.script.copydir, which does
most of the work.
--
Ian Bicking | http://blog.ianbicking.org
That's all that you can input from paster create. You can convert
those values or put in new values in your Template class. Look in
paste.script.templates.Template.check_vars -- override that method to
add or change values.
> Therefore, I don't see how to use Tempita python blocks or how to use
> {{son.father.name}} structure in a Tempita template from a
> paste.script.copydir invocation ? Parameters "var" must be strings.
> From copydir, I'd like to use son as parameters.
>
> Finaly, is there any restriction to use Tempita to generate python, C+
> +, Java or SQL ?
Nope, it just creates text files for any kind of source.