This is  very useful. Thank you.

Regards,
Awais M.

On Feb 26, 3:11 am, Blaise Laflamme <bla...@laflamme.org> wrote:
> Doing something similar for pylonsproject.org to render mako templates
> or rst files based on on a path url:
>
> https://github.com/Pylons/pylonshq/blob/master/pylonshq/handlers/page...
>
> On Feb 24, 3:13 pm, AwaisMuzaffar <awais1...@googlemail.com> wrote:
>
> > Lets assume, I have the following route set up:
>
> > config.add_route('pages', '/{page}/', view='testproject:views.pages',
> > view_renderer='testproject:templates/page.mak')
>
> > Would it be possible to make the template name e.g page.mak a variable
> > that matches the name of the response path.
>
> > something like: view_renderer = .. templates/{page}.mak
>
> > So template name uses the path name.
>
> > I hope you guys understand what I am getting at.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to