Oct 23

htmltmpl: templating engine PHP模板引擎 不指定

shuguang , 15:19 , 模板引擎 , 评论(0) , 引用(0) , 阅读(11505) , Via 本站原创 | |
程序名称:htmltmpl: templating engine
开发者/组织名称:htmltmpl: templating engine
运行环境:php
官方网站:http://htmltmpl.sourceforge.net/
下载地址:http://sourceforge.net/project/showfiles.php?group_id=34229&package_id=222248
文章来源:http://www.osphp.com.cn
程序介绍:
一个适用于Python和PHP的模板引擎。它面向希望在项目中分离代码和设计的web应用开发人员。

The purpose of the templating engine is to provide web application developers, who need to separate the program code and the design (HTML code) of their web application projects, with a templating tool that can easily be used by cooperating webdesigners with no programming skills. //OsPHP.COM.CN

Templating language provided by the engine is inspired by the Perl templating module HTML::Template. Templates created for HTML::Template can be used with this engine.

The engine is currently available for Python and PHP. The Python package includes easydoc, a module that uses the templating engine to generate HTML documentation from docstrings embedded in source files of Python modules.

The primary goal of the templating engine is to keep things simple for a webdesigner who creates the templates. Therefore, neither Python nor PHP code can be used in the templates. Instead, the templating engine provides its own simple templating language that supports basic programming operations - loops, conditionals and substitution of variables. These operations are controlled from within the templates by statements that look like HTML tags and integrate nicely with regular HTML code.

The secondary goal is good performance. High speed template processing is a neccessity if the engine is to be used in web applications.

//OSPHP.COM.Cn开源



I am aware that other templating solutions for Python and PHP exist. But none of them is similar to HTML::Template. I am fond of its enforcement of strict separation of the code and HTML and also of the style and syntax of its templating language. I find it much more cleaner and more maintainable than other solutions. Also, I need to convert some projects from Perl to Python and PHP and I would like to reuse my old HTML::Template templates. That's why I created the templating engine in the first place.

The engine also has an integrated support for gettext. It makes it convenient for development of multilingual "skinnable" web applications.
收藏本文到网摘: 添加到“Google书签” 添加到“Yahoo收藏” 添加到“QQ书签” 搜狐网摘 添加到“百度搜藏” 添加到“新浪ViVi收藏夹” 添加到“Del.icio.us” 添加到“365天天网摘” 添加到“天极网摘” 我摘·网摘·网络书签 添加到“POCO网摘” YouNote网摘 添加到“和讯网摘” 添加到“Bolaa博客收录中心” 添加到“igooi网摘” 添加到“天下图摘”
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容
  • 中查看更多“htmltmpl: templating engine PHP模板引擎”相关内容

  • 最后编辑: shuguang 编辑于2007/12/05 14:31
    发表评论

    昵称

    网址

    电邮

    打开HTML 打开UBB 打开表情 隐藏 记住我 [登录系统] [注册]