Myghty is a Python based templating framework originally based on HTML::Mason, the enterprise-level framework used by Amazon.com, del.icio.us and Salon.com, among many others. Myghty fully implements Mason's templating language, component-based architecture, and caching system, and goes beyond, adding new paradigms such the Module Components controller paradigm, full Python whitespace syntax, threading support, WSGI support, session support, and much more.


Update!

12/28/2006 - Mako Templates released

Mako is an all-new templating engine which represents the best ideas of Myghty distilled into a completely-rewritten and updated API and syntax. Its the next generation of templating ideas first introduced to Python by Myghty, all packed inside a lightweight and zippy package which improves on templating and removes all the framework overhead. Easily integratable into any application or framework, its set to be the default template engine for Pylons. A CherryPy adapter is included, as well as an example WSGI runner.

Myghty support will continue via the mailing list, but active development has ceased. Its framework concepts have now been superceded by WSGI as well as the patterns and tools included in Python Paste. Myghty's container API, used to power its caching and session support, lives on in MyghtyUtils which is heavily leveraged by both Mako and Pylons.

Myghty Features

  • 100% support for all of HTML::Mason's featureset
  • Caching built-in - its the same backend used by Pylon's Beaker
  • Python server page generation; generates modules as .py files
  • Includes handlers for mod_python, CGI, and WSGI. Also included are some sample Python Paste templates. Myghty is integrated with Pylons, Turbogears, and CherryPy using the BuffetMyghty template adapter.
  • Session support is included (same session used by Beaker)
  • Includes key Mason features such as inheritance, and adds new concepts such as module components (a rudimentary view/controller system) as well as a rule-driven component resolution system.
Myghty is covered under the MIT License.

page render time: 0.0036752223968505859 secs