Results 1 to 7 of 7
Thread: Differences between HTML and TPL
-
11-02-2004 04:57 PM #1criserb Guest
Differences between HTML and TPL
Can you explain me how can I make a tpl from a html file and which are the characteristics of a tpl file. Why some programmers prefer to use tpl and some one prefer HTML. Which are the differences between them ?
-
11-02-2004 07:43 PM #2
Senior Member
Array
- Join Date
- Aug 2004
- Location
- Oradea, Romania
- Posts
- 135
sure:
Originally Posted by criserb
on a msdos console: ren file.html file.tpl
on an Windows Exporer: press F2 and change the extension into .tpl
on a *nix box: mv file.html file.tpl
:D
Now, leaving the jokes aside, tpl means a lot of things but what you were referring to is probably a web page template. Now, that could be any templating system, even though it is most common used for smarty for example.
To get an ideea of what a templating system is and how it works, see this site: http://smarty.php.net
Basicly the essence of any templating system is to take a template :) and replace special pieces of strings (also called variables) with the actual data. Which are exactly the respective pieces of strings, only the developer of the sript using the template can tell you, as he/she is the one who knows the available data that can be feed to the template.
--
Alex
Web Hosting & Domain Names UK
Webmaster Forums
Internet Access Web Hosting
-
11-09-2004 06:06 PM #3criserb Guest
Thanks Alex :)
-
11-09-2004 08:26 PM #4
Senior Member
Array
- Join Date
- Aug 2004
- Location
- Oradea, Romania
- Posts
- 135
You are welcome Cristi :)
Originally Posted by criserb
--
Alex
Web Hosting & Domain Names UK
Webmaster Forums
Internet Access Web HostingLast edited by alexandru; 11-09-2004 at 08:29 PM.
-
11-11-2004 04:44 PM #5ovi Guest
Maybe
Alex, maybe will be utile to open a thread about smarty. I understand that you are the expert in this thing :)
Please guide us in this world.
Ovi
-
11-12-2004 10:51 AM #6
Senior Member
Array
- Join Date
- Aug 2004
- Location
- Oradea, Romania
- Posts
- 135
Just read the forum Ovi.... a Smarty thread was already started... by me indeed.. :) but not as an expert, but as someone still trying to learn more about it.... Indeed I have used it a lot lately in all my projects but, I start now to wonder, is this it? Is this the best templating engine there is... ? And honestly I don't know... I'm still looking for the answer...
Originally Posted by ovi
--
Alex
Web Hosting & Domain Names UK
Webmaster Forums
Internet Access Web Hosting
-
11-16-2004 01:22 PM #7criserb Guest
Ovi, you can look here http://www.webmasterserve.com/a/



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks