mako
akoのinheritsはoverrideなので上書き。継承元のブロックと同名の名前付きブロックを呼んだとき、継承元のブロックの中身はレンダリングされない。例。 from mako.template import Template from mako.lookup import TemplateLookup with open("base.mako", …
textを使う。 e.g. ## ここはmakoのテンプレート <%text> <script type="text/html" id="foo_template"> <div class="foo"><%= name %> </div> </script> </%text>