Hi there,

I am (still) using pylons with the mako templating engine.
I got several render("/thispage.mako") calls in my pylons controllers.
The thispage.mako template is part of my pylons based project and I am
using the render call from pylons.templating.

I'd like to provide the possibility to customize the look and feel
without having to alter the original mako templates. So my idea was to
provide a "mytemplates" folder, that may contain a customized template
"thispage.mako".

My idea was to then check, if the customized version exists, and then
render this version but otherwise render the original one:

try:
    render("/mytemplates/thispage.mako")
except:
    render("/thispage.mako")

But the customized themplate /mytemplates/thispage.mako is not known to
my pylons project, when I add it after creating the python package.

Any ideas on this?
Maybe the basis of my approach is not that optimal?

Thanks a lot and kind regards
Cornelius

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to