Jump to content


Which template engine?


11 replies to this topic

#1 designcode

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 02 October 2006 - 04:51 AM

Which is your favourite template engine? I am using templatepower. What template engine pixel2life uses?

#2 Hit3k

    Young Padawan

  • Members
  • Pip
  • 120 posts
  • Gender:Male
  • Location:Australia

Posted 02 October 2006 - 05:48 AM

They probably use their own template engine I use my own as well.

You'd probably also be best searching P2L tutorials for "Template Engine"

Edited by Hit3k, 02 October 2006 - 05:50 AM.


#3 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 02 October 2006 - 12:09 PM

We use our own system but we can't call it a "Template engine" because it runs using normal includes and not dynamically. It's much faster to edit and build in my opinion. Unless you plan to have multiple skins or distribute your script, you better not use them.

#4 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 02 October 2006 - 03:28 PM

My site runs on html, :D

#5 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 02 October 2006 - 03:32 PM

View PostCliff, on Aug 4 2006, 02:51 PM, said:

I would recommend using HTML_Template_Sigma and HTML_Page instead, they're the best ones around


A quote from Cliff. As i haven't used either i won't endorse it but i reckon he's got a fair idea ;)

I use my own purely because making one is part of me learning and i hate having to redesign without one . :D

#6 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 02 October 2006 - 03:43 PM

http://www.pixel2lif.../10/template/1/

That's where you learn :D I'll show you my quick one over msn if you want.

#7 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 02 October 2006 - 03:51 PM

I generally don't like the term noob. It's used wrong imo. But you warrant it lol.

If you ask nicely i may consider it lol. I wouldn't advise anyone using it though if anyone is about to pm me to see it (as usually happens) it's a bit very messy :D

#8 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 02 October 2006 - 04:35 PM

Matt, didn't you and i already post links to our different template classes and then discuss how different they were?

Honestly, the use of a template class is optional, but really convenient. If you code it right, it won't hurt performance to much, but it takes a bit of tinkering. Other then that, it's not hard to learn how to make one.

#9 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 02 October 2006 - 04:45 PM

Ahh, Yes i forgot about that. Good excuse for someone to use the search maybe :D

Just a side note, this tutorial has just come onto the front page...

Quote

1. Introduction to using PEAR HTML_Template_IT Package - Create .tpl files!
http://tutorialcode....tutorial&tut=14

Good timing i call it.

Edited by Matthew., 02 October 2006 - 04:46 PM.


#10 designcode

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 03 October 2006 - 02:41 AM

Use templatePower, http://templatepower.codocad.com, its easy enough and came with better documentation.

#11 InFnit

    P2L Jedi

  • Members
  • PipPipPip
  • 822 posts
  • Interests:My interests are my:<br><br>iidsite - http://iid.outer-heaven.net<br>iidblog - http://iid.outer-heaven.net/blog/<br>iidcommunity - http://iid.outer-heaven.net/forums/<br>P2L - http://www.pixel2life.com

Posted 03 October 2006 - 06:23 AM

I use .tpl files and then just include them when needed (they aren't full-fledged pages but rather snippets of code.) Thats about as powerful as my template engine gets, a switch() in an index page with a load of .tpl files.

#12 designcode

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 03 October 2006 - 09:37 PM

Quote

I use .tpl files and then just include them when needed (they aren't full-fledged pages but rather snippets of code.) Thats about as powerful as my template engine gets, a switch() in an index page with a load of .tpl files.

But if you are making a script that you want to distribute, you have to use some template engine, as it separates UI with Logic.

Edited by designcode, 03 October 2006 - 09:40 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users