Re: is there a templating system that....

2005-08-15 Thread David Nicol
On 8/15/05, Matisse Enzer <[EMAIL PROTECTED]> wrote: > Just a data point: > I'm the maintainer of Text::TagTemplate and will soon release a version > that lets you set the regexes that define the start and end of a tag. FWIW, I have just uploaded TipJar::Template::fill to CPAN. It is an abst

Re: is there a templating system that....

2005-08-15 Thread David Nicol
%Template_vars = qw ( misattribution microsoft correction macromedia mailinglist modperl@perl.apache.org product dreamweaver ); $Template_vars{retractor} = 'David L. Nicol'; $TEMPLATE = <

Re: is there a templating system that....

2005-08-15 Thread David Hodgkinson
On 15 Aug 2005, at 23:02, David Nicol wrote: (getting tired of this thread) It's also now firmly off topic of the mod_perl list! Dave // Having spent most of today explaining the principle of doing \\ the least possible computation at run time...

Re: is there a templating system that....

2005-08-15 Thread Perrin Harkins
On Mon, 2005-08-15 at 17:02 -0500, David Nicol wrote: > How do you get, for instance, netscape composer, to generate a "span" tag? I don't think people use Netscape Composer for real websites. I sometimes use it for writing documentation, but that's about it. > Do the industrial GUI HTML tools a

Re: is there a templating system that....

2005-08-15 Thread David Nicol
On 8/15/05, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Mon, 2005-08-15 at 15:48 -0500, David Nicol wrote: >> Tell the designer to make the variable substitution names red, >> and specify in your template system configuration > > target_regex => qr{\s*([^<]+?)\s*}; > You won't g

Re: is there a templating system that....

2005-08-15 Thread Perrin Harkins
On Mon, 2005-08-15 at 17:18 -0400, Jonathan Vanasco wrote: > Yeah, I never mentioned that... although it was mostly because I > assumed that most templating languages would provide for that. It's actually an unusual thing to want. Valid XHTML templates are not guaranteed to look correct in a br

Re: is there a templating system that....

2005-08-15 Thread Jonathan Vanasco
On Aug 15, 2005, at 4:45 PM, Perrin Harkins wrote: Since Petal (and HTML_Tree, but that's a dead project) are the only ones that do this at all, I'd say most people are doing just fine without templates that are valid XML. I don't remember you mentioning this requirement earlier. If you had,

Re: is there a templating system that....

2005-08-15 Thread Perrin Harkins
On Mon, 2005-08-15 at 15:48 -0500, David Nicol wrote: > If the target regex was set to something like > > use hypothetical_substituting_template_system > template_vars_hashref => \(our %TemplateVars), > target_regex => qr{\s*([^<]+?)\s*}; > > for example, the designer wou

Re: is there a templating system that....

2005-08-15 Thread David Nicol
On 8/15/05, David Hodgkinson <[EMAIL PROTECTED]> wrote: > > HTML::Template got ruled out because the only way to get templates > > to render as xhtml valid is to use info as comments > > Huh? you want to validate templates? A template is just that. What > it renders to should be validated! By ha

Re: is there a templating system that....

2005-08-15 Thread Perrin Harkins
On Mon, 2005-08-15 at 16:39 -0400, Jonathan Vanasco wrote: > What the template renders to better damn well be valid -- but if I > use a templating system that allows for invalid templates, then it > becomes my job to restructure them to be valid in addition to doing > the logic and substituti

Re: is there a templating system that....

2005-08-15 Thread Jonathan Vanasco
Yep. Validate templates. What the template renders to better damn well be valid -- but if I use a templating system that allows for invalid templates, then it becomes my job to restructure them to be valid in addition to doing the logic and substitution. Thats a mess. I want designers

Re: is there a templating system that....

2005-08-15 Thread David Hodgkinson
On 15 Aug 2005, at 06:06, jonathan vanasco wrote: HTML::Template got ruled out because the only way to get templates to render as xhtml valid is to use info as comments Huh? you want to validate templates? A template is just that. What it renders to should be validated!

Re: is there a templating system that....

2005-08-15 Thread Matisse Enzer
On Mon, 15 Aug 2005, David Nicol wrote: > > I'm seriously considering publishing a Template::Substitution::KISS or > something like that in a futile attempt to piss higher than Uri Guttman. Just a data point: I'm the maintainer of Text::TagTemplate and will soon release a version that lets yo

Re: is there a templating system that....

2005-08-15 Thread David Nicol
On 8/15/05, jonathan vanasco <[EMAIL PROTECTED]> wrote: > Petal templates do look nice, because > Hola, Mundo! > is valid xhtml AND lets you have mockup text that is then replaced > > Unfortunately, petal supports all the smart features of tal like if/ > loops (stuff I didn't want in there

Re: is there a templating system that....

2005-08-14 Thread jonathan vanasco
I messed around with Templating systems all weekend, and picked a winner Petal I wanted to go as simple as possible, and with the help of the list narrowed it down to: HTML::Tree HTML::Template Text::TagTemplate Petal HTML tree did exactly what I wanted it to, except I reme

Re: is there a templating system that....

2005-08-13 Thread Kim Scheibel
Jonathan Vanasco wrote: > can someone suggest to me a templating [...] You should read Perrin's "Choosing a Templating System", http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html /Kim

Re: is there a templating system that....

2005-08-12 Thread David Nicol
On 8/12/05, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > working across the spectrum from design only to code only and in > between , I realized what works and is efficient for me and the people > I collaborate with -- and that is them making little pretty things and > not being able to have any

Re: is there a templating system that....

2005-08-12 Thread Jonathan Vanasco
'all I want' is pretty much the idea. Really a lowest-common-denominator type thing. I started out as a designer, then moved onto 'design tech' mediating the arguments between the cto and the creative director. two years ago my cto went on sabbatical to work on python and twistedmatrix. i ha

Re: is there a templating system that....

2005-08-12 Thread David Baird
> On 8/12/05, Perrin Harkins <[EMAIL PROTECTED]> wrote: > > On Fri, 2005-08-12 at 15:45 -0500, David Nicol wrote: > > > my $output = $TemplateCache{$template_name}; > > > $output =~ s/\[(\w+)\]/$InsertableVariables{$1}/g; > > > print $output; > > > > The second it gets more complex t

Re: is there a templating system that....

2005-08-12 Thread David Nicol
On 8/12/05, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Fri, 2005-08-12 at 15:45 -0500, David Nicol wrote: > > my $output = $TemplateCache{$template_name}; > > $output =~ s/\[(\w+)\]/$InsertableVariables{$1}/g; > > print $output; > > The second it gets more complex than that, sto

Re: is there a templating system that....

2005-08-12 Thread Jonathan Vanasco
On Aug 12, 2005, at 4:45 PM, David Nicol wrote: Just pick a naming convention and run what you get back from the designers through the substitution operator. I like square brackets around the variable names, since that convention has some history. my $output = $TemplateCache{$template_na

Re: is there a templating system that....

2005-08-12 Thread Perrin Harkins
On Fri, 2005-08-12 at 15:45 -0500, David Nicol wrote: > my $output = $TemplateCache{$template_name}; > $output =~ s/\[(\w+)\]/$InsertableVariables{$1}/g; > print $output; The second it gets more complex than that, stop and use one from CPAN. > SSI sounds like PHP. PHP is a full-fl

Re: is there a templating system that....

2005-08-12 Thread David Nicol
On 8/12/05, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > I want all of my templates in the apache process - they're going to be > reused constantly and if they need to be changed i have no problem > doing a graceful restart. my $TemplateCache; BEGIN{ opendir TD, "./templates.d";

Re: is there a templating system that....

2005-08-12 Thread Perrin Harkins
On Fri, 2005-08-12 at 16:45 -0400, Jonathan Vanasco wrote: > In terms of memory, I was thinking more along the lines of how much > memory the HTML::Template and Text::TagTemplate modules take up > themselves. > > I want all of my templates in the apache process - they're going to be > reused co

Re: is there a templating system that....

2005-08-12 Thread Jonathan Vanasco
In terms of memory, I was thinking more along the lines of how much memory the HTML::Template and Text::TagTemplate modules take up themselves. I want all of my templates in the apache process - they're going to be reused constantly and if they need to be changed i have no problem doing a gra

Re: is there a templating system that....

2005-08-12 Thread David Nicol
On 8/12/05, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > If/else and loops are already 'too much' -- I essentially just want > variable substitution. I want designers to be able to work on a page > and not need to know anything about the code/logic. Names go here, > dates go here, etc. I ha

Re: is there a templating system that....

2005-08-12 Thread Scott Gifford
Jonathan Vanasco <[EMAIL PROTECTED]> writes: [...] > If/else and loops are already 'too much' -- I essentially just want > variable substitution. I want designers to be able to work on a page > and not need to know anything about the code/logic. Names go here, > dates go here, etc. I have a

Re: is there a templating system that....

2005-08-12 Thread Perrin Harkins
On Fri, 2005-08-12 at 16:07 -0400, Jonathan Vanasco wrote: > This looks useful as well. I think i might bench HTML::Template and > Text::TagTemplate against one another for memory usage. HTML::Template can store the parsed templates on disk outside of the apache process. Check the section on ca

Re: is there a templating system that....

2005-08-12 Thread Jonathan Vanasco
This looks useful as well. I think i might bench HTML::Template and Text::TagTemplate against one another for memory usage. (i'm sure speed is comparable and barely noticeable. the more apache forks i can get the better though) If/else and loops are already 'too much' -- I essentially jus

Re: is there a templating system that....

2005-08-12 Thread Perrin Harkins
On Fri, 2005-08-12 at 14:30 -0400, Jonathan Vanasco wrote: > can someone suggest to me a templating system that does not have a > mini-language or is 'executed' - or if it is, it is with low overhead > -- i don't want to compile more into the mod_perl process than > necessary You basically just

Re: is there a templating system that....

2005-08-12 Thread Jonathan Vanasco
That is pretty much EXACTLY what I was looking for. Thanks! I really wanted to shy away from using anything TAL oriented, and mason/template toolkit are great - but require too much overhead (as i'm not making a mason/tt app, requiring them for rendering is just silly). OT: i know some pe

RE: is there a templating system that....

2005-08-12 Thread Steve Duran
Have you tried Text::TagTemplate? -Original Message- From: Jonathan Vanasco [mailto:[EMAIL PROTECTED] Sent: Friday, August 12, 2005 12:31 PM To: mod_perl List Subject: is there a templating system that can someone suggest to me a templating system that does not have a mini

is there a templating system that....

2005-08-12 Thread Jonathan Vanasco
can someone suggest to me a templating system that does not have a mini-language or is 'executed' - or if it is, it is with low overhead -- i don't want to compile more into the mod_perl process than necessary i don't have a need for any of the mini-language features -- i think i mostly need