Calling Inherited namespace functions using custom tag

39 views
Skip to first unread message

Srikanth Bemineni

unread,
Mar 20, 2016, 5:22:40 PM3/20/16
to Mako Templates for Python
Hi,


Example
## base.html
<%namespace name="foo" file="foo.html" inheritable="True"/>

${next.body()}

## somefile.html
<%inherit file="base.html"/>

${self.foo.bar()}

How to call this line using custom mako tag

<%foo:bar
<%self:foo:bar
-> this doesn't seem to work


Srikanth Bemineni

Reply all
Reply to author
Forward
0 new messages