On 4/22/07, Antipin Aleksei <[EMAIL PROTECTED]> wrote:
>
>
> > Hi.
> > In config/middleware.py set something like this:
> >
> > config.init_app(global_conf, app_conf, package='your_project_name')
> > makopts = {}
> > config.add_template_engine('mako', 'your_project_name.templates',
> > makopts)
> >
> > It works for me.
> > Regards.
> > Ɓukasz Biedrycki
> >
> I tried it and I get error on <%inherit file="base.html"/> saying there
> must be <%inherit file="base.html"/%>.
> After that error reported bad name definition "header()" in <%def
> name="header()">.

Those are Myghty errors.  The default engine is still Myghty.  You'd
have to put "config.template_engines = []" before the add line, or use
the template_engine arg below.

> With simple
> config.init_app(global_conf, app_conf, package='pyoner',
> template_engine='mako')
> in middleware.py I have never got those errors and everything works just
> fine, except for the topic;-).



-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to