Author Topic: Can you tell me what vTemplate feartures are?Thank you very  (Read 1607 times)

0 Members and 1 Guest are viewing this topic.

andy chang

  • Guest
Can you tell me what vTemplate feartures are?Thank you very much!!

[ This Message was edited by: andy chang on 2002-03-27 10:46 ]
Last Edit: Tue, 25. July 2006 - 15:58:37 by ClausVB

releasedj

  • Guest
Can you tell me what vTemplate feartures are?Thank you very
Reply #1 on: Wed, 27. March 2002 - 19:11:00
vTemplate is a super quick, full-featured template system.

It allows you to seperate your design from the programming, allowing easier maintenance of websites as the code needed to produce the pages is more readable (there is no html embeded) and the design is like a normal html page, except a few vTemplate specific tags. This means that if a design change is needed for a page, a designer will be able to edit the page without worrying about the PHP.

Main features.

Template includes: you can include a template file from within another template file so , for example, you can have a site footer that you point to from each template, if you needed to change the footer, it can be done simply by editing 1 file.

Template loops: you can set up loops in your template for maybe showing the result of a database query.

Template conditions: you can actually use boolean conditions in your template (<tmpl_if name="is_true"></tmpl_if>), this can be handy for displaying different color in a table, or showing a list of results in a search page.

Template Caching: you can cache your templates to a file which means that vTemplate reads the template from the cache (which is already compiled) and thus saves ALOT of time when writing a page. This is a very easy feature to install and use and its extremely worthwile.

Template debugging: if you want to see exactly whats being used by vTemplae you can see by using vTemplateDebug. This class will output an html-formatted page with all data needed to see where youre going wrong. It will even tell you if there are errors in the way youve written the template.. smart.

There are many different ways to customise vTemplate and these are just a few short examples of the extremely powerful features of this system, for more information on how to use it, please refer to the documentation that came with your downloaded vLIB file or look HERE at the online version.

If you have any other questions then do not hesitate to ask.
Take a look into the way you can use vTemplate, its very powerful, and Im certain that it will help you in the future.


Good luck.

Kelvin
Founder of vLIB
[email protected]

[ This Message was edited by: releasedj on 2002-03-27 18:30 ]
Last Edit: Tue, 25. July 2006 - 15:58:52 by ClausVB

andy chang

  • Guest
Can you tell me what vTemplate feartures are?Thank you very
Reply #2 on: Wed, 27. March 2002 - 19:39:00
I'm so glad to see your anwser~~^^"
I'll try my best to use this template
to design my page in the future.
thank you very much.