Results 1 to 7 of 7
  1. #1
    criserb Guest

    Default 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 ?

  2. #2
    Join Date
    Aug 2004
    Location
    Oradea, Romania
    Posts
    135

    Default

    Quote Originally Posted by criserb
    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 ?
    sure:
    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

  3. #3
    criserb Guest

    Default

    Thanks Alex :)

  4. #4
    Join Date
    Aug 2004
    Location
    Oradea, Romania
    Posts
    135

    Default

    Quote Originally Posted by criserb
    Thanks Alex :)
    You are welcome Cristi :)

    --
    Alex
    Web Hosting & Domain Names UK
    Webmaster Forums
    Internet Access Web Hosting
    Last edited by alexandru; 11-09-2004 at 08:29 PM.

  5. #5
    ovi Guest

    Thumbs up 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

  6. #6
    Join Date
    Aug 2004
    Location
    Oradea, Romania
    Posts
    135

    Default

    Quote Originally Posted by ovi
    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
    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...

    --
    Alex
    Web Hosting & Domain Names UK
    Webmaster Forums
    Internet Access Web Hosting

  7. #7
    criserb Guest

    Default

    Ovi, you can look here http://www.webmasterserve.com/a/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159