Questions tagged [mako]

Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. Conceptually, Mako is an embedded Python (i.e. Python Server Page) language.

Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. Mako's syntax and API borrows from the best ideas of many others, including Django templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, which refines the familiar ideas of componentized layout and inheritance to produce one of the most straightforward and flexible models available, while also maintaining close ties to Python calling and scoping semantics.

Mako is used by the python.org website as well as reddit.com. It is the default template language included with the Pylons web framework.

422 questions
-2
votes
1 answer

What are the advantages, if any, to using mako's or pylon's form handlers instead of coding the form manually?

Trying to decide if I should be using mako to handle the forms in my application or not. Thanks for the input.
ensnare
  • 40,069
  • 64
  • 158
  • 224
-3
votes
1 answer

Mako: cannot import the Template class. Have a SyntaxError error in "\mako\template.py", line 622

I want to try Mako with Django instead of Django's default template language. But I'm having a problem when I try to import Mako's Template class as written in the manual: from mako.template import Template mytemplate = Template("hello world!")…
Green
  • 28,742
  • 61
  • 158
  • 247
1 2 3
28
29