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
%Template_vars = qw (
misattribution microsoft
correction macromedia
mailinglist modperl@perl.apache.org
product dreamweaver
);
$Template_vars{retractor} = 'David L. Nicol';
$TEMPLATE = <
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...
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
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
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
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,
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
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
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
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
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!
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
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
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
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
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
'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
> 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
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
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
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
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";
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
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
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
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
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
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
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
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
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
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
33 matches
Mail list logo