Jorge Vargas wrote: > I'm wondering if there is a way to have a more powerfull templating > without having to use_chettah=true
I thought at first "sure, just use it in your template", but paste.script.copydir has Cheetah built in. So I've added that to the trunk, and it'll be in 1.0 as soon as I release that (today?) This is a simple callback: new_content = template_renderer(template_content, vars, filename) It's not exactly convenient at the moment, as you'll have to fiddle in the Template subclass to change the call to copydir, but at least it's feasible now. > The reason for this are turbogears templates at the moment we have one > big quickstart template that has lots of #if asking for identity > support of not, and then for SQLObject or SQLAlchemy. > > so it's getting to a point that adding more stuff is a problem. > > if we could get something like reading the variable content form a text file? I'm not clear what you want to do. In the Template subclass that TurboGears defines, you can construct your variables however you want. If you want to, you can pre-construct large blocks of code in Python and put them in a variable. > basically having something like #include but inside paste? I have no > idea how #include will work with paste. #include works in Cheetah...? But I don't know what the context of the include will be. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
