METADATA 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Metadata-Version: 2.0
  2. Name: Mako
  3. Version: 1.0.6
  4. Summary: A super-fast templating language that borrows the best ideas from the existing templating languages.
  5. Home-page: http://www.makotemplates.org/
  6. Author: Mike Bayer
  7. Author-email: mike@zzzcomputing.com
  8. License: MIT
  9. Keywords: templates
  10. Platform: UNKNOWN
  11. Classifier: Development Status :: 5 - Production/Stable
  12. Classifier: Environment :: Web Environment
  13. Classifier: Intended Audience :: Developers
  14. Classifier: Programming Language :: Python
  15. Classifier: Programming Language :: Python :: 3
  16. Classifier: Programming Language :: Python :: Implementation :: CPython
  17. Classifier: Programming Language :: Python :: Implementation :: PyPy
  18. Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
  19. Requires-Dist: MarkupSafe (>=0.9.2)
  20. =========================
  21. Mako Templates for Python
  22. =========================
  23. Mako is a template library written in Python. It provides a familiar, non-XML
  24. syntax which compiles into Python modules for maximum performance. Mako's
  25. syntax and API borrows from the best ideas of many others, including Django
  26. templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
  27. Python (i.e. Python Server Page) language, which refines the familiar ideas
  28. of componentized layout and inheritance to produce one of the most
  29. straightforward and flexible models available, while also maintaining close
  30. ties to Python calling and scoping semantics.
  31. Nutshell
  32. ========
  33. ::
  34. <%inherit file="base.html"/>
  35. <%
  36. rows = [[v for v in range(0,10)] for row in range(0,10)]
  37. %>
  38. <table>
  39. % for row in rows:
  40. ${makerow(row)}
  41. % endfor
  42. </table>
  43. <%def name="makerow(row)">
  44. <tr>
  45. % for name in row:
  46. <td>${name}</td>\
  47. % endfor
  48. </tr>
  49. </%def>
  50. Philosophy
  51. ===========
  52. Python is a great scripting language. Don't reinvent the wheel...your templates can handle it !
  53. Documentation
  54. ==============
  55. See documentation for Mako at http://www.makotemplates.org/docs/
  56. License
  57. ========
  58. Mako is licensed under an MIT-style license (see LICENSE).
  59. Other incorporated projects may be licensed under different licenses.
  60. All licenses allow for non-commercial and commercial use.