webpy use '.html' as default template file extension, hy not use
'.mako' ('.tmpl' or whatever) for Mako template engine? it's easy to
know what template engine it used.

such as (web.contrib.template):

----<----
class render_mako:
    ...skip...
    def __getattr__(self, name):
        # Assuming all templates are html
        #path = name + ".html"
        if os.path.exists(name + '.mako'):
            path = name + ".mako"
        elif os.path.exists(name + '.tmpl'):
            path = name + '.tmpl'
        else:
            path = name + '.html'
        t = self._lookup.get_template(path)
        return t.render
----<----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to