Download List

项目描述

FastTemplate is a PHP3 class for managing template files
and performing variable interpolation. It is a strict port of
Jason Moore's Perl module CGI::FastTemplate. Its primary
use is to separate HTML and PHP code, making your PHP
code cleaner.

系统要求

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2009-03-20 15:04
1.6.2

一个错误的捕获文件的模板时,返回为空。该模板的路径现在可以重写,帐户之间的创作环境和部署环境的差异。
An error is returned for capture when the template filename is empty. The template path may now be rewritten to account for differences between the authoring environment and the deployment environment.

2008-02-05 16:02
1.6.0

该文档风格改写为干净多了。
标签: Code cleanup
The documentation style was rewritten to be much
cleaner.

2006-06-28 08:55
1.5.1

文件正处于docs目录,并进行了改进。该rewrite_link_href_callback,rewrite_src_path,set_output_rewrite_src_path和pre_filter功能增加了。 JS的CSS,和IMG的模板被改写到自定义路径钢骨混凝土。所有对SRC =“template_path实例/文件”的文件中被改写,这是非常有帮助时,您要编辑的工作模板在没有任何脚本的路径,将调用模板输出的工作内容,可视化编辑器连接。快写和森快捷得到改善。
标签: Major feature enhancements
Documentation now is in the DOCS directory, and was improved. The rewrite_link_href_callback, rewrite_src_path, set_output_rewrite_src_path, and pre_filter functions were added. JS, CSS, and img src from a template are rewritten to a custom path. All instances of src="template_path/file" found in the document are rewritten, which is very helpful when you want to edit the work template in a visual editor without any connection to the script path that will invoke the work template output content. FastWrite and FastPrint were improved.

2005-03-29 23:01
1.3.0

阿DELETE_CACHE删除文件功能比旧的过期时间。文件扩展名缓存:例如,现在缓存文件名称将md5name.ft。这是必要的,因为DELETE_CACHE。一个包括块,其中包括另一个模板使用语句(如小型工业做)<!--# include文件=“include2.html "-->.它是有用的,如果你有几个不同的模板,一个页面的不同部分,你不需要编写任何PHP代码收集所有“块的页面”。
标签: Major feature enhancements
A DELETE_CACHE function to delete files older than the expire time. A file extension to cache: for example, now a cache file name will be md5name.ft. This was necessary because of DELETE_CACHE. An include block that includes another template using a statement (like SSI do) &lt;!--#include file=&quot;include2.html&quot;--&gt;. It is useful if you have several different templates for different parts of a page, and you dont need to write any PHP code to gather all "blocks" of the page.

2005-02-16 15:21
1.2.0

在FastTemplate::parse_and_return($ template_name)方法被添加。在FastTemplate::get_root()方法,它返回根目录的模板,增加了。为模板的评论支持加入。为内联动态块支持加入。支持使用get访问对象域()或getId()方法增加了从模板。在FastTemplate::定义()方法现在支持数组,名称和参数值。FastTemplate::assign_from_array($数组,$键)加入。模板变量分配了相同的名称相关联的数组。
标签: Major feature enhancements
The FastTemplate::parse_and_return($template_name)
method was added. The FastTemplate::get_root()
method, which returns the root template dir, was
added. Support for template comments was added.
Support for inline dynamic blocks was added.
Support for accessing object fields using get() or
getId() methods from templates was added. The
FastTemplate::define() method now supports array,
name, and value as parameters.
FastTemplate::assign_from_array($array, $keys) was
added. Template variables are assigned from the
associated array with the same name.

Project Resources