General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 7th, 2003, 07:50 PM
*JaH* *JaH* is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 14 *JaH* User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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)

Reply With Quote
  #2  
Old May 9th, 2003, 08:33 AM
*JaH* *JaH* is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 14 *JaH* User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
never mind it's too elite for you guys

Reply With Quote
  #3  
Old May 9th, 2003, 11:06 AM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 17
Quote:
never mind it's too elite for you guys

Lol - do a search a the forum and you will find a few threads asking/discussing template systems.

Quote:
I'd like to know your opinions about it, what's faster, better etc Thanks

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.




Reply With Quote
  #4  
Old May 10th, 2003, 10:41 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
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 IMHO

But, if I were going to use some sort of "template" I would make an external file, and do it with a CSS

Reply With Quote
  #5  
Old May 10th, 2003, 02:33 PM
*JaH* *JaH* is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 14 *JaH* User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by nicat23
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 IMHO

But, if I were going to use some sort of "template" I would make an external file, and do it with a CSS



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

Reply With Quote
  #6  
Old May 10th, 2003, 02:52 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Ah.. I see what you mean then

Reply With Quote
  #7  
Old May 11th, 2003, 01:43 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
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?

Reply With Quote
  #8  
Old May 11th, 2003, 08:21 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
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

Reply With Quote
  #9  
Old May 11th, 2003, 10:54 AM
Vince Vince is offline
LordNitrous
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: England
Posts: 134 Vince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
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!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > What do you use?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap