mako 模板语言 python
马可为Python模板
Mako is a template library written in Python.马可为Python编写的模板库。 It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance.它提供了一个熟悉的,非XML语法从而为最高性能的Python模块编译。 Mako's syntax and API borrows from the best ideas of many others, including Django templates, Cheetah, Myghty, and Genshi.马可的语法和API借用了很多其他人的最好的想法,包括Django的模板,猎豹,Myghty和元史。 Conceptually, Mako is an embedded Python (ie 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.从概念上,马可,是一个嵌入式Python(即Python的服务器页)语言,它提炼的组件化布局和继承熟悉的想法产生最直接的和灵活的机型之一,同时也保持着密切的联系,Python的要求和范围的语义。
Mako is used by the python.org website as the basis for their site build system ( README ), as well as by reddit.com for their newly launched beta site.马可用于由python.org网站为(依据其网站生成系统自述 ),以及reddit.com为他们新推出的测试网站。 It is the default template language included with the Pylons web framework.这是默认的模板语言包含在主塔的Web框架。
Python是一个伟大的脚本语言。 Don't reinvent the wheel...your templates can handle it !不要重新发明轮子...你的模板能处理它!
一个模板语言?!
Well, not totally true.嗯,不完全正确的。 Mako is effectively the replacement for the Myghty templating system, and is now the default template language for the Pylons web framework (a framework which originally grew out of Myghty).马可有效Myghty是更换的模板系统,现在是默认模板的语言主塔 web框架(一个架构,原本出自Myghty)。 Compared to Myghty (and Myghty's inspiration HTML::Mason) it's a vastly simplified and totally Python-centric system which is much better suited to the current generation of WSGI frameworks.相比Myghty(和Myghty的灵感网页::梅森)这是一个大大简化,完全巨蟒中心的系统,更适合于目前这一代的WSGI框架。 And it does offer features that aren't found in any other template language.而且,它还是提供未在任何其他模板语言发现功能。
http://www.makotemplates.org/
Mako is a template library written in Python.马可为Python编写的模板库。 It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance.它提供了一个熟悉的,非XML语法从而为最高性能的Python模块编译。 Mako's syntax and API borrows from the best ideas of many others, including Django templates, Cheetah, Myghty, and Genshi.马可的语法和API借用了很多其他人的最好的想法,包括Django的模板,猎豹,Myghty和元史。 Conceptually, Mako is an embedded Python (ie 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.从概念上,马可,是一个嵌入式Python(即Python的服务器页)语言,它提炼的组件化布局和继承熟悉的想法产生最直接的和灵活的机型之一,同时也保持着密切的联系,Python的要求和范围的语义。
Mako is used by the python.org website as the basis for their site build system ( README ), as well as by reddit.com for their newly launched beta site.马可用于由python.org网站为(依据其网站生成系统自述 ),以及reddit.com为他们新推出的测试网站。 It is the default template language included with the Pylons web framework.这是默认的模板语言包含在主塔的Web框架。
Python是一个伟大的脚本语言。 Don't reinvent the wheel...your templates can handle it !不要重新发明轮子...你的模板能处理它!
一个模板语言?!
Well, not totally true.嗯,不完全正确的。 Mako is effectively the replacement for the Myghty templating system, and is now the default template language for the Pylons web framework (a framework which originally grew out of Myghty).马可有效Myghty是更换的模板系统,现在是默认模板的语言主塔 web框架(一个架构,原本出自Myghty)。 Compared to Myghty (and Myghty's inspiration HTML::Mason) it's a vastly simplified and totally Python-centric system which is much better suited to the current generation of WSGI frameworks.相比Myghty(和Myghty的灵感网页::梅森)这是一个大大简化,完全巨蟒中心的系统,更适合于目前这一代的WSGI框架。 And it does offer features that aren't found in any other template language.而且,它还是提供未在任何其他模板语言发现功能。
http://www.makotemplates.org/