词条 | TinyButStrong |
释义 |
| name = TinyButStrong Template Engine | logo = | developer = Skrol29 | latest_release_version = 3.7.0 | latest_release_date = {{Release date and age|2011|03|18}} | latest_preview_version = | latest_preview_date = | programming language = PHP | genre = Template Engine | license = LGPL | website = www.tinybutstrong.com }} TinyButStrong is a web template system written in the PHP language. Its library for the attention of PHP developers. As a template system, its goal is to help to code by separating the business algorithms (Business logic) from the construction of the user presentation. The short name for TinyButStrong is TBS. The first version of TinyButStrong appeared in January 2002. Its first goal was to merge emails. In the middle 2002, it was able to merge dynamic web pages. The name of TinyButStrong comes from the intention to be simple to use while being handy for several levels of developers. TinyButStrong was always content in a single PHP file. The TinyButStrong Template Engine claims to merge Natural Templates, i.e. templates that respect the format of the final document to produce. It is possible to build an HTML template that is W3C compliant, and it is possible to build it using a WYSIWYG tool. It is also possible to build an OpenOffice Writer template using OpenOffice.org. This ability to operate within an environment where website designers use WYSIWYG tools is crucial for end users during website development. It enables them to utilize separate vendors - one for their 'look & feel' designers and other(s) for their programming requirements. Obviously, this extends the lifecycle as their ability to change vendors with much less difficulty in replacing specific skill sets is enhanced substantially. The TinyButStrong engine can only deals with template that are text sources. Thus, it can merge contents like HTML pages, email, XML, or RSS, but it cannot merge templates such as PDF. The core system contains few features dedicated to HTML templates. TinyButStrong can be extended to merge OpenOffice and Microsoft Office documents. This is possible because such documents are in fact XML contents embed in a zip archive. Building such documents with TinyButStrong requires a plug-in called OpenTBS. Features
TinyButStrong ExamplesAn HTML template with TinyButStrong tags might look like this: The business logic to use the TinyButStrong template above could be as follows: Natural TemplatesNatural Templates are templates that respect the format of the final document to produce. This can be done by TinyButStrong because:
Relative syntax for blocksHere is an example of the TinyButStrong standard syntax for a block that should multiply the rows of an HTML table. This syntax interferes with the HTML structure. Here is an example of the TinyButStrong relative syntax for the same block. This syntax doesn't interfere with the HTML structure. Relative syntax for fieldsHere is an example of the TinyButStrong standard syntax for a field that should change the value of an HTML attribute. This syntax interferes with the HTML structure. Here is an example of the TinyButStrong relative syntax for the same field. This syntax doesn't interferes with the HTML structure. See also{{Portal|Free and open-source software}}
References
External links
2 : Free software programmed in PHP|Template engines |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。