TurboGears / tg2

Python web framework with full-stack layer implemented on top of a microframework core with support for SQL DBMS, MongoDB and Pluggable Applications
http://www.turbogears.org/
Other
805 stars 78 forks source link

Using Kajiki & Jinja simultaneously doesn't work #100

Closed sreenadh closed 6 years ago

sreenadh commented 6 years ago

I've configured Jinja ( base_config.renderers.append('jinja') ) and used in a controller as follows

@expose('jinja:a.b.c.templates.y')
def action(self):

I've two master layouts "abc.xhtml" and "abc.jinja" Now Kajiki being the default renderer, takes "abc.jinja" !! How does it happen?

If I run Jinja template first Kajiki template does not work and vice versa !!

I've tried expose by provide kajiki as rendering engine and it too didn't work

@expose('kajiki:a.b.c.templates.z')
def action(self):
sreenadh commented 6 years ago

Jinja templates are used in one controller and another controller uses Kajiki templates. Both controllers are in same module.

sreenadh commented 6 years ago

Solved by renaming the kajiki template master "abc.xhtml" to "xyz.xhtml"