Re: [PHP] Re: Templating engines

2005-07-03 Thread Robert Cummings
On Sun, 2005-07-03 at 03:24, Burhan Khalid wrote: > Robert Cummings wrote: > > On Fri, 2005-04-29 at 23:55, Rasmus Lerdorf wrote: > > > > [--SNIPPED--] > > > > This isn't a problem for engines that compile to PHP source that has > > direct hooks into the necessary data structures that will contai

Re: [PHP] Re: Templating engines

2005-07-03 Thread Burhan Khalid
Robert Cummings wrote: On Fri, 2005-04-29 at 23:55, Rasmus Lerdorf wrote: Robert Cummings wrote: I don't think that templates have a dependency between the number of pages using the template and an increase in the number of functions. In fact depending on the template, and the template engine

Re: [PHP] Re: Templating engines

2005-07-03 Thread Burhan Khalid
Jay Blanchard wrote: [snip] and box of bending straws. [/snip] Nice. LMAO -- and now, back to the show. For those that really were looking for a xml-based templating enging, IBM's DW has one that you can download the source to. Its not PHP, but hey, its a start. Google for 'toot-o-ma

Re: [PHP] Re: Templating engines

2005-05-02 Thread Robert Cummings
On Mon, 2005-05-02 at 13:02, Skrol29 wrote: > Mattias Thorslund a écrit : > > Then I wonder what makes skol29 think PHP's "basic template features" > > are "too poor" to be used seriously? I think PHP's "basic template > > features" are phenomenal. > > PHP is a nice and powerfull scripting lang

Re: [PHP] Re: Templating engines

2005-05-02 Thread Skrol29
Mattias Thorslund a écrit : Then I wonder what makes skol29 think PHP's "basic template features" are "too poor" to be used seriously? I think PHP's "basic template features" are phenomenal. PHP is a nice and powerfull scripting langage oriented for Web developement. Let's look at what's it can

Re: [PHP] Re: Templating engines

2005-05-02 Thread Skrol29
Skrol 29 wrote: I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates systems I totaly disagree to say that PHP is a Template Engine. Ok, it has some basic template features, but they are too poor to use i

Re: [PHP] Re: Templating engines

2005-04-30 Thread rush
> You also need to recognize that you are going to need presentation-layer > logic. You simply can't get around that and you shouldn't confuse > presentation-level logic, which can be quite complex, with the business > logic behind your application. I often see people make the mistake of > trying

Re: [PHP] Re: Templating engines

2005-04-29 Thread Robert Cummings
On Fri, 2005-04-29 at 23:55, Rasmus Lerdorf wrote: > Robert Cummings wrote: > > I don't think that templates have a dependency between the number of > > pages using the template and an increase in the number of functions. In > > fact depending on the template, and the template engine, you can have

Re: [PHP] Re: Templating engines

2005-04-29 Thread Rasmus Lerdorf
Robert Cummings wrote: I think a problem here is when you decide to blend two projects that started out separately. With a templating system (some anyways :) you can just redefine the main layout for each page being merged into the larger project in a single centralized location. The approach descr

Re: [PHP] Re: Templating engines

2005-04-29 Thread Greg Donald
On 4/29/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > Personally I find having the output ALWAYS begin after all business > logic has completed to be a better choice I agree totally. Most PHP coders I've worked around put PHP in their HTML. I am the exact opposite. I use PHP to build up my H

Re: [PHP] Re: Templating engines

2005-04-29 Thread Robert Cummings
On Fri, 2005-04-29 at 21:09, Mattias Thorslund wrote: > Rasmus Lerdorf wrote: > > > Mattias Thorslund wrote: > > > >> Who says PHP itself is a template engine? I think nobody. > > > > > > I do. > > > > It comes down to whether you want the delineation between the template > > and the business l

Re: [PHP] Re: Templating engines

2005-04-29 Thread Matthew Weier O'Phinney
* Rasmus Lerdorf <[EMAIL PROTECTED]> : > My main issue with general-purpose templating systems is that they > always end up inventing a new language. It may start off as a subset of > some other language, but eventually it turns into a new language. In > Smarty, for example, you now have stuff

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Rasmus Lerdorf wrote: Mattias Thorslund wrote: Who says PHP itself is a template engine? I think nobody. I do. It comes down to whether you want the delineation between the template and the business logic enforced by the system or not. PHP is a general-purpose templating system that does not

Re: [PHP] Re: Templating engines

2005-04-29 Thread Rasmus Lerdorf
Mattias Thorslund wrote: Skrol 29 wrote: What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates syste

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Jason Barnett wrote: Mattias Thorslund wrote: ... Who says PHP itself is a template engine? I think nobody. What are the "basic template features"? Variables / placeholders Looping construct(s) Conditionals A way to apply styles to text / markup So I suppose I'm just confused over what constit

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Richard Lynch wrote: Who says PHP itself is a template engine? I do. More importantly, Rasmus does. What? My li'l brother does PHP? Or you mean him Lerdorf? Sorry... /Mattias -- More views at http://www.thorslund.us

Re: [PHP] Re: Templating engines

2005-04-29 Thread Jason Barnett
Mattias Thorslund wrote: ... Who says PHP itself is a template engine? I think nobody. What are the "basic template features"? Variables / placeholders Looping construct(s) Conditionals A way to apply styles to text / markup However, there is a school of thought regarding templates that advocate

Re: [PHP] Re: Templating engines

2005-04-29 Thread Richard Lynch
> Who says PHP itself is a template engine? I do. More importantly, Rasmus does. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Skrol 29 wrote: What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates systems I totaly disagree to

Re: [PHP] Re: Templating engines

2005-04-29 Thread Greg Donald
On 4/29/05, Skrol 29 <[EMAIL PROTECTED]> wrote: > It would be like calling Notepad / VI / TextEdit "Html Editors". HTML is text.. so any text editor is an HTML editor by default, including vi. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.p

[PHP] Re: Templating engines

2005-04-29 Thread Skrol 29
What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates systems I totaly disagree to say that PHP is a T

Re: [PHP] Re: Templating engines

2005-04-29 Thread rush
"Clive Zagno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I dont mind seeing php and html together, but designer generally hate > it, so I would want to seperate php code from html as much as possible. if this is your objective than it could be worthwile for you to look at Templa

Re: [PHP] Re: Templating engines

2005-04-29 Thread Robert Cummings
On Fri, 2005-04-29 at 13:27, Clive Zagno wrote: > Wait - doesn't smarty 'compile' the php file and the tpl file into > another php file. If you look into templates_c directory you find some > 'compiled' templates. I didn't say smarty wasn't compiled, only that InterJinn avoids the cache overhea

Re: [PHP] Re: Templating engines

2005-04-29 Thread Matthew Weier O'Phinney
* Clive Zagno <[EMAIL PROTECTED]>: > Wait - doesn't smarty 'compile' the php file and the tpl file into > another php file. If you look into templates_c directory you find some > 'compiled' templates. Yes, it does. And your question is...? If it's about performance, the compilation is not an i

[PHP] Re: Templating engines

2005-04-29 Thread pete M
Hi clive I tried all of them and I must admit smarty comes out on top by a mile I use it on a very busy virtual host and have had NO problems with slow script etc, highly recommended http://smarty.php.net pete Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive bee

Re: [PHP] Re: Templating engines

2005-04-29 Thread Clive Zagno
Wait - doesn't smarty 'compile' the php file and the tpl file into another php file. If you look into templates_c directory you find some 'compiled' templates. clive Robert Cummings wrote: On Thu, 2005-04-28 at 13:20, Ryan A wrote: On 4/28/2005 7:08:00 PM, Evert | Rooftop Solutions ([EMAIL PROT

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Jason Barnett wrote: Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do w

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Jason Barnett wrote: Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do w

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Hi Ryan, The XML basics are really simple and can be learned in 15 minutes, so I suppose you already know this. I personally think www.xml.com has some good resources, and they don't just keep it with theory and translate the stuff to practical situations. Also google for stuff like namespaces

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jared Williams
> > Evert | Rooftop Solutions wrote: > > Yes, and that's how I read this reply =) > > > > About the subject, > > > > I'm working on a xml-based templating system, which caches all the > > steps it does, so it overcomes the slowness =) And ofcource > because I > > like xml and all the neith th

Re: [PHP] Re: Templating engines

2005-04-28 Thread Robert Cummings
On Thu, 2005-04-28 at 13:53, Ryan A wrote: > > > > I would go for a xml-style template engine (start flaming right below > > > > this thread) > > > > > Flaming??? who has time to start flaming after reading what you wrote? > > > am busying banging my head against the wall. > > > > To state the

Re: [PHP] Re: Templating engines

2005-04-28 Thread John Nichel
Jay Blanchard wrote: Note the coding style of the open snip tag, I believe that would be Jason's Gestooberhanken! Btt. Awww, sorry, but you do not win the grand prize. However, we do have some nice parting gifts for you. Tell him what he's won Chuck. Well John, for Jay we have a

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jay Blanchard
[snip] and box of bending straws. [/snip] Nice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Philip Hallstrom
/* I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do with it. */ Sounds like you are pretty good with xml... i know very little of XML, do you have a link I can read u

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jay Blanchard
[snip] > [snip] > > Jason Barnett wrote: > > > > > Humor is on my "TODO" list. > > > > Making a TODO list is on my TODO list. > > [/snip] > > > > Now, I know that we all love to discuss small dogs from Kansas, but I've > too much to do right now. > > TYVM! Hey Jay, Just wanted to tell

Re: [PHP] Re: Templating engines

2005-04-28 Thread Andre Dubuc
On Thursday 28 April 2005 03:21 pm, Ryan A wrote: > On 4/28/2005 8:18:28 PM, Andre Dubuc ([EMAIL PROTECTED]) wrote: > > On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > > > Jason Barnett wrote: > > > > > > > > > > > > > Humor is on my "TODO" list. > > > > > > Making a TODO list is on my TO

RE: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
> [snip] > > Jason Barnett wrote: > > > > > Humor is on my "TODO" list. > > > > Making a TODO list is on my TODO list. > > [/snip] > > > > Now, I know that we all love to discuss small dogs from Kansas, but I've > too much to do right now. > > TYVM! Hey Jay, Just wanted to tell you..

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
/* I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do with it. */ Sounds like you are pretty good with xml... i know very little of XML, do you have a link I can read u

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
On 4/28/2005 8:18:28 PM, Andre Dubuc ([EMAIL PROTECTED]) wrote: > On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > > > Jason Barnett wrote: > > > > > > > > > > Humor is on my "TODO" list. > > > > > > Making a TODO list is on my TODO list. > > > > > > -- > > > John C. Nichel > > > ÜberGeek

Re: [PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do with it. grt, Evert O

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Ryan A wrote: I would go for a xml-style template engine (start flaming right below this thread) Hey Rob, I sorry for the mix up but the above (however "obvious") was *not* meant to be a flame, I was *only* joking with the guy. Is it just me or is joking becoming outlawed on the list? M

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Andre Dubuc wrote: On Thursday 28 April 2005 02:05 pm, John Nichel wrote: Jason Barnett wrote: Humor is on my "TODO" list. Making a TODO list is on my TODO list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] Just out of curiosity, are there any templati

Re: [PHP] Re: Templating engines

2005-04-28 Thread Andre Dubuc
On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > Jason Barnett wrote: > > > > Humor is on my "TODO" list. > > Making a TODO list is on my TODO list. > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] Just out of curiosity, are there any templating engines

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jay Blanchard
[snip] Jason Barnett wrote: > Humor is on my "TODO" list. Making a TODO list is on my TODO list. [/snip] Now, I know that we all love to discuss small dogs from Kansas, but I've too much to do right now. TYVM! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
On 4/28/2005 8:05:31 PM, John Nichel ([EMAIL PROTECTED]) wrote: > Jason Barnett wrote: > > > > > Humor is on my "TODO" list. > > > > Making a TODO list is on my TODO list. hehe used to be on mine too, then I finally made a TODO list and now I have a TODO reminder to do the things on my

Re: [PHP] Re: Templating engines

2005-04-28 Thread John Nichel
Jason Barnett wrote: Humor is on my "TODO" list. Making a TODO list is on my TODO list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Is it just me or is joking becoming outlawed on the list? Most of us are geeks or classified as geeks on the lista little geek humour please? programming is a serious business and i find myself getting quite stressed sometimesusing a little humour or reading others humourous replies helps I

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
/* Mind you I don't post much at all anymore since I became a father a year and a half ago... priorities you know :) */ Almost forgot, congrats on your kid. Cheers, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.4 - Release

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
> > > I would go for a xml-style template engine (start flaming right below > > > this thread) > > Flaming??? who has time to start flaming after reading what you wrote? > > am busying banging my head against the wall. > To state the obvious... the above is in actuality a flame disguised as >

Re: [PHP] Re: Templating engines

2005-04-28 Thread Philip Hallstrom
Ive been using smarty (http://smarty.php.net) Just FYI, you've opened the door for a holy war, as temlating and template engines are a fairly volatile topic, with many people holding very extreme opinions on the subject. (me? I use Smarty.) So just because you use smarty you think you are smart and

Re: [PHP] Re: Templating engines

2005-04-28 Thread Robert Cummings
On Thu, 2005-04-28 at 13:20, Ryan A wrote: > On 4/28/2005 7:08:00 PM, Evert | Rooftop Solutions > ([EMAIL PROTECTED]) wrote: > > Ryan A wrote: > > >So just because you use smarty you think you are smart and have the right > > to be smart..who the hell do you think you are?? > > > > >Sorry, just giv

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
On 4/28/2005 7:08:00 PM, Evert | Rooftop Solutions ([EMAIL PROTECTED]) wrote: > Ryan A wrote: > >So just because you use smarty you think you are smart and have the right > to be smart..who the hell do you think you are?? > > >Sorry, just giving an example of how a jackass with extreme opinions >

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Ryan A wrote: So just because you use smarty you think you are smart and have the right to be smart..who the hell do you think you are?? Sorry, just giving an example of how a jackass with extreme opinions would write on this holy war's volatile topic. no offense meant :-) Cheers, Ryan I wo

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
> > Ive been using smarty (http://smarty.php.net) > > > > Just FYI, > you've opened the door for a holy war, as temlating and > template engines are a fairly volatile topic, with many people holding > very extreme opinions on the subject. > > (me? I use Smarty.) > > -- > Matthew Weier O'Phinney

Re: [PHP] Re: Templating engines

2005-04-28 Thread Clive Zagno
Hi, I dont mind seeing php and html together, but designer generally hate it, so I would want to seperate php code from html as much as possible. clive Jason Barnett wrote: Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net

[PHP] Re: Templating engines

2005-04-28 Thread Matthew Weier O'Phinney
* Clive Zagno <[EMAIL PROTECTED]>: > What templating engines do you use with php and why? > > Ive been using smarty (http://smarty.php.net) Just FYI, you've opened the door for a holy war, as temlating and template engines are a fairly volatile topic, with many people holding very extreme opinions

[PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. PHP itself is a templating engine, i.e. it can be used to filter input and format it into output. But Smarty is nice if you want your people to be able to create a