|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
What do you use?
What methoud do you use when it comes to html-templates? Do you have a file with a list of all variables with html-values and just include() 'em? or do you write a single template file per html section and fopen() 'em? Or anything else?
I'd like to know your opinions about it, what's faster, better etc Thanks ![]() Myself I just open a html-file and replace all the variables by its values (so I have a single template file per html-page/section) |
|
#2
|
|||
|
|||
|
never mind it's too elite for you guys
![]() |
|
#3
|
||||
|
||||
|
Quote:
Lol - do a search a the forum and you will find a few threads asking/discussing template systems. Quote:
Opinions about what? Templating systems are far more than what you described in your post. Provide more detail please...
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#4
|
||||
|
||||
|
Personally I don't like templating systems
I prefer to write dynamic code that generates its own page depending on what the user wants to do.. templates limit what you can and can't do IMHOBut, if I were going to use some sort of "template" I would make an external file, and do it with a CSS |
|
#5
|
|||
|
|||
|
Quote:
Well if you are working with a team of 3 programmers and 3 designers you have to split the html-code and the programming-code ![]() But I've been googling for it and now I'm using Smarty It's very powerful, a bit too much though, it asks quite some education for the designers...which is too bad ![]() |
|
#6
|
||||
|
||||
|
Ah.. I see what you mean then
|
|
#7
|
||||
|
||||
|
How could you not use templates? What happens if you have a 30 page site and you want to change the colour of the nav background?
|
|
#8
|
||||
|
||||
|
Well I don't have a 30 page site right now
and since all of my code is dynamicly generated right now, it automatically gets the settings for colors, backgrounds, etc from the database depending on the users settings, and generates the page according to how they want it to look.. so I guess I do use templates ![]() |
|
#9
|
|||
|
|||
|
I use CSS and PHP includes for my sites usually, it is quite the combination, I would use the user-preference templates if I knew how to though because that is a cool feature to have on the site.
__________________
You don't deserve to read my signature...yeah! That's it, keep walking...yeah walk away from me! That's it! Get out of my pub, you're barred! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > What do you use? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|