Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

THIS IS NOT THE OFFICIAL REPO - PLEASE SUBMIT PRs ETC AT:http://github.com/sqlalchemy/mako

License

NotificationsYou must be signed in to change notification settings

zzzeek/mako

Repository files navigation

Mako is a template library written in Python. It provides a familiar, non-XMLsyntax which compiles into Python modules for maximum performance. Mako'ssyntax and API borrows from the best ideas of many others, including Djangotemplates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embeddedPython (i.e. Python Server Page) language, which refines the familiar ideasof componentized layout and inheritance to produce one of the moststraightforward and flexible models available, while also maintaining closeties to Python calling and scoping semantics.

Nutshell

<%inherit file="base.html"/><%    rows = [[v for v in range(0,10)] for row in range(0,10)]%><table>    % for row in rows:        ${makerow(row)}    % endfor</table><%def name="makerow(row)">    <tr>    % for name in row:        <td>${name}</td>\    % endfor    </tr></%def>

Philosophy

Python is a great scripting language. Don't reinvent the wheel...your templates can handle it !

Documentation

See documentation for Mako athttps://docs.makotemplates.org/en/latest/

License

Mako is licensed under an MIT-style license (see LICENSE).Other incorporated projects may be licensed under different licenses.All licenses allow for non-commercial and commercial use.

About

THIS IS NOT THE OFFICIAL REPO - PLEASE SUBMIT PRs ETC AT:http://github.com/sqlalchemy/mako

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors55


[8]ページ先頭

©2009-2025 Movatter.jp