Re: [PHP] templating engine options

2009-06-01 Thread Andrew Ballard
On Mon, May 25, 2009 at 6:44 PM, Nathan Rixham nrix...@gmail.com wrote: Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: 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

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 nrix...@gmail.com wrote: Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: I continued the discussion with Nathan. I too have had an off-list discussion with Nathan on

RE: [PHP] templating engine options

2009-05-27 Thread Andrea Giammarchi
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 f...@thefsb.org wrote: thanks for taking the trouble to write your requirements. it made interesting reading. i've questions

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: ?php $content = 'No Comments'; if(isset($comments) and is_array($comments) and count($comments) 0 ) { $content = ''; foreach( $comments as $index = $comment ) : $content. = a href='.

RE: [PHP] templating engine options

2009-05-26 Thread Andrea Giammarchi
...@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 rob...@interjinn.com: I continued the discussion with Nathan. I too have had an off-list

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

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

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

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
On 5/25/09 8:48 PM, Nathan Rixham nrix...@gmail.com wrote: Sancar Saran wrote: ?php $content = 'No Comments'; if(isset($comments) and is_array($comments) and count($comments) 0 ) { $content = ''; foreach( $comments as $index = $comment ) : $content. = a href='.

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 nrix...@gmail.com wrote: XSL Templates are near perfect, built for the job, and very powerful - but time hasn't favoured them well;

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 nrix...@gmail.com wrote: XSL Templates are near

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 8:48 PM, Nathan Rixham nrix...@gmail.com wrote: Sancar Saran wrote: ?php $content = 'No Comments'; if(isset($comments) and is_array($comments) and count($comments) 0 ) { $content = ''; foreach( $comments as $index = $comment ) : $content. = a href='.

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 nrix...@gmail.com 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

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

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 HTML

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 nrix...@gmail.com: LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd tedd.sperl...@gmail.com wrote: At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: LinuxManMikeC wrote: I was recently researching

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

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

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings rob...@interjinn.com: On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: 2009/5/24 Nathan Rixham nrix...@gmail.com: LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd tedd.sperl...@gmail.com wrote: At 12:01 AM +0100 5/24/09, Nathan Rixham wrote:

Re: [PHP] templating engine options

2009-05-25 Thread Tom Worster
On 5/23/09 6:21 PM, Nathan Rixham nrix...@gmail.com 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

Re: [PHP] templating engine options

2009-05-25 Thread Tom Worster
On 5/25/09 10:04 AM, Stuart stut...@gmail.com wrote: Quick question, how would you implement the following using your XML-based template syntax... div class=option ?php if (!empty($option_class)) { echo $option_class; } ? ... /div It's worth noting that I'm simply suggesting a different

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 rob...@interjinn.com: On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: 2009/5/24 Nathan Rixham nrix...@gmail.com: LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd tedd.sperl...@gmail.com wrote:

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings rob...@interjinn.com: On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: 2009/5/24 Nathan Rixham nrix...@gmail.com: LinuxManMikeC wrote: On Sun, May 24, 2009 at

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 rob...@interjinn.com: On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: 2009/5/24 Nathan Rixham nrix...@gmail.com:

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 rob...@interjinn.com: 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

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 10:04 AM, Stuart stut...@gmail.com wrote: Quick question, how would you implement the following using your XML-based template syntax... div class=option ?php if (!empty($option_class)) { echo $option_class; } ? ... /div It's worth noting that I'm simply

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 rob...@interjinn.com: Have I done something to annoy you lately? You seem to be directing a lot of hostility my way recently. Just

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings rob...@interjinn.com: On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: On Sun, 2009-05-24 at 21:26 +0100, Stuart

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 rob...@interjinn.com: On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: 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 Stuart
2009/5/25 Robert Cummings rob...@interjinn.com: On Mon, 2009-05-25 at 19:56 +0100, Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: On Mon, 2009-05-25 at 15:04 +0100, Stuart

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Stuart wrote: 2009/5/25 Robert Cummings rob...@interjinn.com: 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

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 rob...@interjinn.com: 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

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Sancar Saran wrote: ?php $content = 'No Comments'; if(isset($comments) and is_array($comments) and count($comments) 0 ) { $content = ''; foreach( $comments as $index = $comment ) : $content. = a href='. $comment-link.'.$comment-title./a; endforeach; } ? h2Comments/h2 div

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

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

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: [PHP] templating engine options

2009-05-24 Thread LinuxManMikeC
On Sun, May 24, 2009 at 11:09 AM, tedd tedd.sperl...@gmail.com 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

Re: [PHP] templating engine options

2009-05-24 Thread Stuart
2009/5/23 Nathan Rixham nrix...@gmail.com: 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

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
Stuart wrote: 2009/5/24 Nathan Rixham nrix...@gmail.com: LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd tedd.sperl...@gmail.com 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,

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

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

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

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

Re: [PHP] templating engine options

2009-05-23 Thread LinuxManMikeC
On Sat, May 23, 2009 at 4:21 PM, Nathan Rixham nrix...@gmail.com 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 then I'd

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