Re: [PHP] templating engine options

2009-06-01 Thread Robert Cummings
On Mon, 2009-06-01 at 12:38 -0400, Andrew Ballard wrote: > On Mon, May 25, 2009 at 6:44 PM, Nathan Rixham wrote: > > Stuart wrote: > >> > >> 2009/5/25 Robert Cummings : > >>> > >>> I continued the discussion with Nathan. > >> > >> I too have had an off-list discussion with Nathan on this topic, an

Re: [PHP] templating engine options

2009-06-01 Thread Andrew Ballard
On Mon, May 25, 2009 at 6:44 PM, Nathan Rixham wrote: > Stuart wrote: >> >> 2009/5/25 Robert Cummings : >>> >>> I continued the discussion with Nathan. >> >> I too have had an off-list discussion with Nathan on this topic, and a >> productive one at that. >> > > which would probably be a good time

RE: [PHP] templating engine options

2009-05-27 Thread Andrea Giammarchi
il.com > To: f...@thefsb.org > CC: nrix...@gmail.com; php-general@lists.php.net > Subject: Re: [PHP] templating engine options > > On Tue, May 26, 2009 at 5:49 PM, Tom Worster wrote: > > thanks for taking the trouble to write your requirements. it made > > interesting r

Re: [PHP] templating engine options

2009-05-27 Thread Andrew Ballard
On Tue, May 26, 2009 at 5:49 PM, Tom Worster wrote: > thanks for taking the trouble to write your requirements. it made > interesting reading. > > i've questions on three points below... > > > On 5/25/09 6:44 PM, "Nathan Rixham" wrote: > >> XSL Templates are near perfect, built for the job, and v

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
thanks for the pointers on xsl. i'll take a look. On 5/26/09 6:05 PM, "Nathan Rixham" wrote: >> it seems you're saying that there would be some kind of an intermediate >> level of data representation that a script can be invoked to produce from >> which different templates can produce different

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 8:48 PM, "Nathan Rixham" wrote: Sancar Saran wrote: 0 ) { $content = ''; foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; } ?> Comments index.php ob_start(); require('template.php'); echo ob_get_clean(); I'm stil

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: thanks for taking the trouble to write your requirements. it made interesting reading. and thanks for taking the time to read it! it was a big one. i've questions on three points below... On 5/25/09 6:44 PM, "Nathan Rixham" wrote: XSL Templates are near perfect, built

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
thanks for taking the trouble to write your requirements. it made interesting reading. i've questions on three points below... On 5/25/09 6:44 PM, "Nathan Rixham" wrote: > XSL Templates are near perfect, built for the job, and very powerful - > but time hasn't favoured them well; and until (if

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
On 5/25/09 8:48 PM, "Nathan Rixham" wrote: > Sancar Saran wrote: >> > $content = 'No Comments'; >> if(isset($comments) and is_array($comments) and count($comments) > 0 ) { >> $content = ''; >> foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; >> } >> ?> >

Re: [PHP] templating engine options

2009-05-26 Thread tedd
At 12:46 PM -0400 5/25/09, Robert Cummings wrote: I'm going to leave this discussion here since it's eating up too much of my time :) Cheers, Rob. Rob: It's always been my experience to listen when you talk. -- so -- when you find some time AND have the inclination, could you prepare a sim

Re: [PHP] templating engine options

2009-05-26 Thread tedd
At 8:13 PM +0100 5/25/09, Stuart wrote: I too have had an off-list discussion with Nathan on this topic, and a productive one at that. -Stuart Great! Now you guys are having a three-some without me. :-) While I wasn't getting it, I was trying. Cheers, tedd -- --- http://sperling.com ht

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Andrea Giammarchi wrote: Finally somebody mentioned XSL Transformations. Time is relative because as you need time to learn an API to produce quickly only after a while, thanks to knowledge and confidence, XSL is the same with the advantage that you transform a data structure, rather than work

RE: [PHP] templating engine options

2009-05-26 Thread Andrea Giammarchi
> To: stut...@gmail.com > CC: rob...@interjinn.com; linuxmanmi...@gmail.com; tedd.sperl...@gmail.com; > php-general@lists.php.net > Subject: Re: [PHP] templating engine options > > Stuart wrote: > > 2009/5/25 Robert Cummings : > >> I continued the discussion with

Re: [PHP] templating engine options

2009-05-26 Thread Sancar Saran
On Tuesday 26 May 2009 03:48:41 am Nathan Rixham wrote: > Sancar Saran wrote: > > > $content = 'No Comments'; > > if(isset($comments) and is_array($comments) and count($comments) > 0 ) { > > $content = ''; > > foreach( $comments as $index => $comment ) : $content. = "".$comment->title."";

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Sancar Saran wrote: 0 ) { $content = ''; foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; } ?> Comments index.php ob_start(); require('template.php'); echo ob_get_clean(); I'm still do not understand for complex template s

Re: [PHP] templating engine options

2009-05-25 Thread Sancar Saran
On Tuesday 26 May 2009 01:44:43 am Nathan Rixham wrote: > Stuart wrote: > > 2009/5/25 Robert Cummings : > >> I continued the discussion with Nathan. > > > > I too have had an off-list discussion with Nathan on this topic, and a > > productive one at that. > > which would probably be a good time for

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Stuart wrote: 2009/5/25 Robert Cummings : I continued the discussion with Nathan. I too have had an off-list discussion with Nathan on this topic, and a productive one at that. which would probably be a good time for me to step back in; having had a nice little inside in to both Robert an

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Mon, 2009-05-25 at 19:56 +0100, Stuart wrote: >> 2009/5/25 Robert Cummings : >> > On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: >> >> 2009/5/25 Robert Cummings : >> >> > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: >> >> >> 2009/5/25 Robert Cummings : >> >> >

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 19:56 +0100, Stuart wrote: > 2009/5/25 Robert Cummings : > > On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: > >> 2009/5/25 Robert Cummings : > >> > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > >> >> 2009/5/25 Robert Cummings : > >> >> > On Sun, 2009-05-24 at 21:26 +010

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: >> 2009/5/25 Robert Cummings : >> > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: >> >> 2009/5/25 Robert Cummings : >> >> > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: >> >> >> 2009/5/24 Nathan Rixham : >> >> >>

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 16:58 +0100, Nathan Rixham wrote: > Robert Cummings wrote: > > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > >> 2009/5/25 Robert Cummings : > >> Have I done something to annoy you lately? You seem to be directing a > >> lot of hostility my way recently. Just wondering. >

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 10:04 AM, "Stuart" wrote: Quick question, how would you implement the following using your XML-based template syntax... ... It's worth noting that I'm simply suggesting a different way of looking at the world. If you have a templating system you're happy with

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: 2009/5/25 Robert Cummings : Have I done something to annoy you lately? You seem to be directing a lot of hostility my way recently. Just wondering. I'm sorry you're taking it personally... you may want to invest some time

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: > 2009/5/25 Robert Cummings : > > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > >> 2009/5/25 Robert Cummings : > >> > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: > >> >> 2009/5/24 Nathan Rixham : > >> >> > LinuxManMikeC wrote: > >> >> >> >

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: >> 2009/5/25 Robert Cummings : >> > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: >> >> 2009/5/24 Nathan Rixham : >> >> > LinuxManMikeC wrote: >> >> >> >> >> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: >> >> >>>

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > 2009/5/25 Robert Cummings : > > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: > >> 2009/5/24 Nathan Rixham : > >> > LinuxManMikeC wrote: > >> >> > >> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: > >> >>> > >> >>> At 12:01 AM +0100 5/24/09,

Re: [PHP] templating engine options

2009-05-25 Thread Tom Worster
On 5/25/09 10:04 AM, "Stuart" wrote: > Quick question, how would you implement the following using your > XML-based template syntax... > > ... > > It's worth noting that I'm simply suggesting a different way of > looking at the world. If you have a templating system you're happy > with then f

Re: [PHP] templating engine options

2009-05-25 Thread Tom Worster
On 5/23/09 6:21 PM, "Nathan Rixham" wrote: > Just a quick one, can anybody recommend any decent templating engines > other than smarty. i started using phplib template in 2002. since then i've never bothered to revisit that choice. it may not qualify as an engine (all it does is juggle files and

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: >> 2009/5/24 Nathan Rixham : >> > LinuxManMikeC wrote: >> >> >> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: >> >>> >> >>> At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: >> >> LinuxManMikeC wrote: >>

Re: [PHP] templating engine options

2009-05-25 Thread tedd
At 9:06 AM -0400 5/25/09, Robert Cummings wrote: On Mon, 2009-05-25 at 13:46 +0100, Richard Heyes wrote: > > That's where your integrity is called into question. What's that...? :-) One of the most important attributes a person can have. It is more important than the person's technical abil

Re: [PHP] templating engine options

2009-05-25 Thread tedd
At 11:11 PM +0100 5/24/09, Nathan Rixham wrote: often though you have dedicated web designers who do html, css java and nothing else - and a graphics design guy and the developers (php + server side) - that was a pointless comment though and it is all scenario based. You can wear the hat prov

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 13:46 +0100, Richard Heyes wrote: > > That's where your integrity is called into question. > > What's that...? :-) One of the most important attributes a person can have. It is more important than the person's technical ability. :) Cheers, Rob -- http://www.interjinn.com

Re: [PHP] templating engine options

2009-05-25 Thread Richard Heyes
> That's where your integrity is called into question. What's that...? :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) PHP SMTP:

Re: [PHP] templating engine options

2009-05-25 Thread Tom Chubb
"Sometimes I'm the windshield and sometimes I'm the bug" Ha ha! Love that!

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 09:39 +0100, Richard Heyes wrote: > Hi, > > > and then you have the joy of telling the client its 6 months work > > 6 months vs 1 day... Ka-Ching! :-) That's where your integrity is called into question. Cheers, Rob. -- http://www.interjinn.com Application and Templating

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: > 2009/5/24 Nathan Rixham : > > LinuxManMikeC wrote: > >> > >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: > >>> > >>> At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: > > LinuxManMikeC wrote: > > > > I was recently researching te

Re: [PHP] templating engine options

2009-05-25 Thread Sancar Saran
> > You're missing the point just because he threw in some old HTML > > styling attributes. The main issue is the overhead of added parsing > > layers to find where content goes in the HTML. Aren't we already > > using a language (PHP) that parses for place holders for dynamic > > content within

Re: [PHP] templating engine options

2009-05-25 Thread Richard Heyes
Hi, > and then you have the joy of telling the client its 6 months work 6 months vs 1 day... Ka-Ching! :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
tedd wrote: At 1:54 PM -0600 5/24/09, LinuxManMikeC wrote: You're missing the point just because he threw in some old HTML styling attributes. The main issue is the overhead of added parsing layers to find where content goes in the HTML. I may be missing the point, but I know where content go

Re: [PHP] templating engine options

2009-05-24 Thread tedd
At 1:54 PM -0600 5/24/09, LinuxManMikeC wrote: You're missing the point just because he threw in some old HTML styling attributes. The main issue is the overhead of added parsing layers to find where content goes in the HTML. I may be missing the point, but I know where content goes in my scr

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
tedd wrote: At 9:43 PM +0100 5/24/09, Nathan Rixham wrote: and now I'm questioning myself - not on the client scenario based decisions - but on my own personal projects and things only I work on.. why do I use a template engine? habit? some old logical decision I made based on abstraction whic

Re: [PHP] templating engine options

2009-05-24 Thread tedd
At 9:43 PM +0100 5/24/09, Nathan Rixham wrote: and now I'm questioning myself - not on the client scenario based decisions - but on my own personal projects and things only I work on.. why do I use a template engine? habit? some old logical decision I made based on abstraction which somehow rul

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
Stuart wrote: 2009/5/24 Nathan Rixham : LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd wrote: At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: LinuxManMikeC wrote: I was recently researching template engines for a small in-house project, with a bias toward simple and lightweight

Re: [PHP] templating engine options

2009-05-24 Thread Stuart
2009/5/24 Nathan Rixham : > LinuxManMikeC wrote: >> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: >>> >>> At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: LinuxManMikeC wrote: > > I was recently researching template engines for a small in-house > project, with a bias toward

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd wrote: At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: LinuxManMikeC wrote: I was recently researching template engines for a small in-house project, with a bias toward simple and lightweight. I found this interesting article in my

Re: [PHP] templating engine options

2009-05-24 Thread Stuart
2009/5/23 Nathan Rixham : > Hi All, > > Just a quick one, can anybody recommend any decent templating engines other > than smarty. > > I've got no problem with smarty and it does the job - but if there is > something newer and lighter out there that I'm missing then I'd be a fool > not to at least

Re: [PHP] templating engine options

2009-05-24 Thread LinuxManMikeC
On Sun, May 24, 2009 at 11:09 AM, tedd wrote: > At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: >> >> LinuxManMikeC wrote: >>> >>> I was recently researching template engines for a small in-house >>> project, with a bias toward simple and lightweight.  I found this >>> interesting article in my se

Re: [PHP] templating engine options

2009-05-24 Thread Richard Heyes
> ... For a long time I used require(), simply because I worked in an environment where the web people could either cope with PHP or were programmers. But then I succumbed to the lure and wrote RTemplate (http://www.phpguru.org/rtemplate) - a simple caching template doobry. And now I still use re

Re: [PHP] templating engine options

2009-05-24 Thread kranthi
i use smarty (a templating engine) for two important reasons... 1. in most of my projects, templates are designed by a third party and i dont want them to access all my php variables. 2. smarty is meant to do html coding and in many cases i can get the job done in single sentence, while it takes 3

Re: [PHP] templating engine options

2009-05-24 Thread tedd
At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: LinuxManMikeC wrote: I was recently researching template engines for a small in-house project, with a bias toward simple and lightweight. I found this interesting article in my search. I think its worth considering if you don't need all the bells

Re: [PHP] templating engine options

2009-05-23 Thread Eddie Drapkin
I've had a lot of success with Savant3: www.phpsavant.com becuase it's pretty featureful yet fast(er than the alternatives I tested). On Sat, May 23, 2009 at 7:01 PM, Nathan Rixham wrote: > LinuxManMikeC wrote: > >> On Sat, May 23, 2009 at 4:21 PM, Nathan Rixham wrote: >> >>> Hi All, >>> >>> Ju

Re: [PHP] templating engine options

2009-05-23 Thread Nathan Rixham
LinuxManMikeC wrote: On Sat, May 23, 2009 at 4:21 PM, Nathan Rixham wrote: Hi All, Just a quick one, can anybody recommend any decent templating engines other than smarty. I've got no problem with smarty and it does the job - but if there is something newer and lighter out there that I'm miss

Re: [PHP] templating engine options

2009-05-23 Thread Nathan Rixham
Kevin Waterson wrote: On Sat, 2009-05-23 at 23:21 +0100, Nathan Rixham wrote: Hi All, Just a quick one, can anybody recommend any decent templating engines other than smarty. I've got no problem with smarty and it does the job - but if there is something newer and lighter out there that I'm

Re: [PHP] templating engine options

2009-05-23 Thread Kevin Waterson
On Sat, 2009-05-23 at 23:21 +0100, Nathan Rixham wrote: > Hi All, > > Just a quick one, can anybody recommend any decent templating engines > other than smarty. > > I've got no problem with smarty and it does the job - but if there is > something newer and lighter out there that I'm missing the

Re: [PHP] templating engine options

2009-05-23 Thread LinuxManMikeC
On Sat, May 23, 2009 at 4:21 PM, Nathan Rixham wrote: > Hi All, > > Just a quick one, can anybody recommend any decent templating engines other > than smarty. > > I've got no problem with smarty and it does the job - but if there is > something newer and lighter out there that I'm missing then I'd

[PHP] templating engine options

2009-05-23 Thread Nathan Rixham
Hi All, Just a quick one, can anybody recommend any decent templating engines other than smarty. I've got no problem with smarty and it does the job - but if there is something newer and lighter out there that I'm missing then I'd be a fool not to at least consider it! can't be part of a f

Re: [PHP] Pure PHP Templating Class/AJAX Problem

2008-10-13 Thread Yeti
Well after looking at the template thing you posted with your link it seems to me like PHP is used to create working XML. So i wonder why you are using AJAX here. Now could it be that you use appendChild() ? That function would simply add the XML again. It's not easy to tell if you are not showing

[PHP] Pure PHP Templating Class/AJAX Problem

2008-10-13 Thread Tom Shaw
I use a pure templating class similar to something that I found here http://www.talkphp.com/advanced-php-programming/2568-pure-php-template-class .html. My question is how do you handle AJAX requests from XMLHttpRequest (); My class pumps out the entire page over again after the AJAX request is ma

Re: [PHP] templating

2006-06-26 Thread Jochem Maas
I just wanted to add that Richards technique is a good way to go. I often use something very similar, the only difference being that I make the head() and foot() function methods in class (an instance of the class being created by the global include file for the given site e.g: class Page {

Re: [PHP] templating

2006-06-23 Thread Ryan A
Hey Tedd, > > > >> > He just needs maybe 5 template > >> > pages, same pages, different color. > >> > >> For something THIS simple, I truly believe you > are > >> Better Off (tm) > >> with a simple head() and foot() function in a > >> globals.inc file: > > > >Sorry, dont know where my brain was t

Re: [PHP] templating

2006-06-23 Thread tedd
At 3:37 AM -0700 6/23/06, Ryan A wrote: >Hi Rich, >Thanks for replying. > > >> > He just needs maybe 5 template >> > pages, same pages, different color. >> >> For something THIS simple, I truly believe you are >> Better Off (tm) >> with a simple head() and foot() function in a >> globals.inc file:

Re: [PHP] templating

2006-06-23 Thread tedd
At 9:57 PM -0500 6/22/06, Richard Lynch wrote: >On Thu, June 22, 2006 7:23 pm, tedd wrote: >-snip- > >> > >> Well... I prefer to separate the header and footer into two files and >> load them as needed in my web page. In addition, I would most >> certainly remove ALL attribute stuff that could/sh

Re: [PHP] templating

2006-06-23 Thread Ryan A
Hi Rich, Thanks for replying. > > He just needs maybe 5 template > > pages, same pages, different color. > > For something THIS simple, I truly believe you are > Better Off (tm) > with a simple head() and foot() function in a > globals.inc file: Sorry, dont know where my brain was that day, wha

Re: [PHP] templating

2006-06-22 Thread Richard Lynch
On Thu, June 22, 2006 7:23 pm, tedd wrote: > At 6:26 PM -0500 6/22/06, Richard Lynch wrote: >>On Thu, June 22, 2006 6:10 am, Ryan A wrote: >>> He just needs maybe 5 template >>> pages, same pages, different color. >> >>For something THIS simple, I truly believe you are Better Off (tm) >>with a simp

Re: [PHP] templating

2006-06-22 Thread tedd
At 6:26 PM -0500 6/22/06, Richard Lynch wrote: >On Thu, June 22, 2006 6:10 am, Ryan A wrote: >> He just needs maybe 5 template >> pages, same pages, different color. > >For something THIS simple, I truly believe you are Better Off (tm) >with a simple head() and foot() function in a globals.inc file

Re: [PHP] templating

2006-06-22 Thread Richard Lynch
On Thu, June 22, 2006 6:10 am, Ryan A wrote: > He just needs maybe 5 template > pages, same pages, different color. For something THIS simple, I truly believe you are Better Off (tm) with a simple head() and foot() function in a globals.inc file: function head($title = "My Site", $bgcolor = '#fff

Re: [PHP] templating

2006-06-22 Thread Micky Hulse
Miles Thompson wrote: Don't forget, PHP itself is a templating language. Just do a standard page, with includes for headers and footers, menus, and content. If he wants to change colour, then load a different stylesheet for a given page or content section. This way he can use the tool that's rig

Re: [PHP] templating

2006-06-22 Thread Joe Wollard
IMHO I would go with Smarty as it has excellent documentation and would fit almost anything that the project would require. I also think it would be a cleaner way of templating than using str_replace () over and over again. For what it's worth, I use Smarty on almost all of my projects, larg

Re: [PHP] templating

2006-06-22 Thread Dave Goodchild
On 22/06/06, Miles Thompson <[EMAIL PROTECTED]> wrote: At 08:10 AM 6/22/2006, Ryan A wrote:>Hi,>>A pal of mine needed some help on his project, he is>using a "header" and "footer" file to "template" his>project... but its gotten a bit complicated as he has >a few dynamic parts in the header and foo

Re: [PHP] templating

2006-06-22 Thread Miles Thompson
At 08:10 AM 6/22/2006, Ryan A wrote: Hi, A pal of mine needed some help on his project, he is using a "header" and "footer" file to "template" his project... but its gotten a bit complicated as he has a few dynamic parts in the header and footer files, so I told him to go with a proper templati

Re: [PHP] templating

2006-06-22 Thread Jon Anderson
Ryan A wrote: Hi, A pal of mine needed some help on his project, he is using a "header" and "footer" file to "template" his project... but its gotten a bit complicated as he has a few dynamic parts in the header and footer files, so I told him to go with a proper templating method of templatin

RE: [PHP] templating

2006-06-22 Thread George Pitcher
, you'll be faced with making another major change then. Just my 2p worth. George in Oxford > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: 22 June 2006 12:10 pm > To: php php > Subject: [PHP] templating > > > Hi, > > A pal of mine nee

[PHP] templating

2006-06-22 Thread Ryan A
Hi, A pal of mine needed some help on his project, he is using a "header" and "footer" file to "template" his project... but its gotten a bit complicated as he has a few dynamic parts in the header and footer files, so I told him to go with a proper templating method of templating the whole page r

Re: [PHP] Templating systems for single developers?

2005-05-10 Thread Robert Cummings
On Tue, 2005-05-10 at 17:17, Murray @ PlanetThoughtful wrote: > Hi All, > > So, if anyone out there uses a templating system (ie Smarty, PHPSavant etc) > and they don't work in a team environment, I'd love to hear what benefits > you derive from so doing. I do for as many projects as possible. No

Re: [PHP] Templating systems for single developers?

2005-05-10 Thread Ligaya Turmelle
I use Smarty and am the lone developer. Why - Easiest to give an example that I did. I have my site with 7 pages. Each page has a minimum of 4 templates for it (though 6 is the average). Time goes on and I decided I wanted to completely change the look of my site (currently can't handle the

[PHP] Templating systems for single developers?

2005-05-10 Thread Murray @ PlanetThoughtful
Hi All, Given that templating seems to be a hot topic at the moment, I'm wondering if anyone here uses templating in a single developer environment, and why if so? I've looked at various template systems from time-to-time but I've always come away thinking, 'yep, I can see the point in a team env

Re: [PHP] yet another php templating question

2005-05-10 Thread Ryan A
Hey, > You are quite welcome to have a look at my template processor, there > is the start of some documentation at http://kwiktemplates.com/ Thanks Tom, will have a look at it, very gererious of you. Cheers, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version

[PHP] Re: yet another php templating question

2005-05-10 Thread Matthew Weier O'Phinney
* Ryan A <[EMAIL PROTECTED]>: > Since we are caught up in the templating season, I think its time for this > one; > > We have just finished designing the software blueprint for a new PHP > product, we usually used the "include() method" :-) to "template" > U/I's for the clients but this one seems a

Re: [PHP] yet another php templating question

2005-05-10 Thread Tom Rogers
Hi Ryan, Tuesday, May 10, 2005, 11:48:39 PM, you wrote: RA> Hey, RA> Since we are caught up in the templating season, I think its time for this RA> one; RA> We have just finished designing the software blueprint for a new PHP RA> product, RA> we usually used the "include() method" :-) to "templat

[PHP] yet another php templating question

2005-05-10 Thread Ryan A
Hey, Since we are caught up in the templating season, I think its time for this one; We have just finished designing the software blueprint for a new PHP product, we usually used the "include() method" :-) to "template" U/I's for the clients but this one seems a bit bigger... I really like Smarty

Re: [PHP] Templating engines

2005-04-29 Thread Mattias Thorslund
rush wrote: "Mattias Thorslund" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] (On the subject of templating engines, again.) I wonder what you folks think of the following: http://www.massassi.com/php/articles/template_engines/ hi! It is nicely written, but actually, I think

Re: [PHP] Templating engines

2005-04-29 Thread rush
"Mattias Thorslund" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > (On the subject of templating engines, again.) > > I wonder what you folks think of the following: > http://www.massassi.com/php/articles/template_engines/ hi! It is nicely written, but actually, I think completely

Re: [PHP] Templating engines

2005-04-28 Thread Mattias Thorslund
(On the subject of templating engines, again.) I wonder what you folks think of the following: http://www.massassi.com/php/articles/template_engines/ I've been using the template class in the example of the article. I think it's easy to use and very flexible, since it uses PHP as the actual templ

Re: [PHP] Templating engines

2005-04-28 Thread Alnisa Allgood
At 5:43 PM -0800 4/28/05, Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) I've used include(), and smarty, but now use Expression Engine http://www.pmachine.com. EE which is more of a CMS than just a templating system,

Re: [PHP] Templating engines

2005-04-28 Thread Ryan A
> I'm a big fan of include(). ;) Ditto! -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 4/27/2005 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Templating engines

2005-04-28 Thread John Nichel
Greg Donald wrote: On 4/28/05, Clive Zagno <[EMAIL PROTECTED]> wrote: What templating engines do you use with php and why? I use eval(). Because it works. Myself, I'm partial to include(). ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Templating engines

2005-04-28 Thread John Nichel
Greg Donald wrote: On 4/28/05, Clive Zagno <[EMAIL PROTECTED]> wrote: What templating engines do you use with php and why? I use eval(). Because it works. I'm a big fan of include(). ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://ww

Re: [PHP] Templating engines

2005-04-28 Thread Greg Donald
On 4/28/05, Clive Zagno <[EMAIL PROTECTED]> wrote: > What templating engines do you use with php and why? I use eval(). Because it works. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Templating engines

2005-04-28 Thread Clive Zagno
Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Templating system (was Re: [PHP] Cleaning up my messy code)

2003-09-29 Thread Brad Pauly
On Mon, 2003-09-29 at 17:07, Curt Zirzow wrote: > I wonder if now is a place to introduce my new templating system. Definitely! I'd be interested in seeing it. > I have the same difficulties in letting just joe blow executing php > code within templates, sometimes smarty is just to smart for >

Re: [PHP] templating question

2003-03-21 Thread Brent Baisley
You can always roll your own, it's not that hard at all. Here is an example: ob_start(); include("templateFile"); $tpl_file = ob_get_contents(); ob_end_clean(); The contents of your template file are now in the variable $tpl_file and you can you str_replace to input the data. Remember that str_

Re: [PHP] Templating

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 18:20, Trent Gillespie wrote: > I have a template file that I would like to add the content to no write over it. I >want the string $content to be added to my template instead of writing over it. Here >is my current script > > $tutorial = "template.php"; > > > $fp = fope

[PHP] Templating

2002-02-04 Thread Trent Gillespie
I have a template file that I would like to add the content to no write over it. I want the string $content to be added to my template instead of writing over it. Here is my current script $tutorial = "template.php"; $fp = fopen("$tutorial","w"); fputs($fp, $content, strlen($content)); If y

Re: [PHP] Templating solutions?

2001-12-29 Thread David Jackson
Woops -- first link is to the site for PHPFastTemplate. > Lauri -- > You might want to take a look at: http://www.thewebmasters.net/php/ > there's a tutorial located here: > http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html > > -- David >> Hi there! >> >> During the last two we

Re: [PHP] Templating solutions?

2001-12-29 Thread David Jackson
Lauri -- You might want to take a look at: http://www.thewebmasters.net/php/ there's a tutorial located here: http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html -- David > Hi there! > > During the last two weeks or so, I've been bugged by a question deep > inside me. It's about v

Re: [PHP] Templating solutions?

2001-12-29 Thread Bogdan Stancescu
A great solution for this kind of job is Midgard (www.midgard-project.org). It provides heaps of features oriented to solving all your possible problems -- user control/access; separate content and "style" templates, manages includes automatically so you don't have to fiddle around tens or hundred

[PHP] Templating solutions?

2001-12-29 Thread Lauri Vain
Hi there! During the last two weeks or so, I've been bugged by a question deep inside me. It's about various templating solutions used with dynamic web applications. Oftentimes simply embedding the code into the HTML template does the trick. Othertimes the include("header.inc");and include("

Re: [PHP] Templating help

2001-01-10 Thread Rasmus Lerdorf
> $template_file = "".$template_root."".$template_file.""; What are those empty strings supposed to do? This is the same thing: $template_file = $template_root.$template_file; > return implode("",(@file($template_file))); Ack! That's horrible. Do this instead:

[PHP] Templating help

2001-01-10 Thread Cameron
ok, im working on a simple and fast templating system for the website im recreating at the moment. im trying to make it so as the template file can be opened into a variable before it is passed to the parsing section so as i dont have to open the file 100 times etc. im not using fasttemplates beca