Re: [htmltmpl] Small questions.

2006-05-17 Thread Sam Tregar
On Thu, 18 May 2006, Mathew Robertson wrote: Shared cache has the nice effect of reducing the memory footprint of the templates, when running apache in multi-process mode. So does file_cache, and it's a heck of a lot easier to manage! -sam ---

Re: [htmltmpl] Small questions.

2006-05-17 Thread Mathew Robertson
You can use a filter to strip stuff from your templates - check the list archive for examples Mathew 2) Wouldn't be nice to have a template comment tag? I think it would be useful to describe template, and not generate HTML. For example: or In our project we 'compile' the templates befo

Re: [htmltmpl] Small questions.

2006-05-17 Thread Mathew Robertson
Shared cache has the nice effect of reducing the memory footprint of the templates, when running apache in multi-process mode. Mathew Yeesh - shared_cache is terrible. I really should remove it. It's no faster than file_cache and much more prone to problems. Both are much slower than regula

Re: [htmltmpl] Small questions.

2006-05-17 Thread Sam Tregar
On Wed, 17 May 2006, Matias Alejo Garcia wrote: Are you using caching? Are you pre-caching your templates during server startup? If so then you can have as many includes as you want and it won't make a bit of difference at runtime. Yes, we are using shared_cached. We are no precaching, but

Re: [htmltmpl] Small questions.

2006-05-17 Thread Matias Alejo Garcia
On 5/17/06, Sam Tregar <[EMAIL PROTECTED]> wrote: On Wed, 17 May 2006, Matias Alejo Garcia wrote:> So, some of our pages include 200 templates (we use shared_cached=>1). These> 'include' strategy helps our designer because its HTML code is reutilized > over and over.> Would you say this is a correc

Re: [htmltmpl] Small questions.

2006-05-17 Thread Sam Tregar
On Wed, 17 May 2006, Matias Alejo Garcia wrote: So, some of our pages include 200 templates (we use shared_cached=>1). These 'include' strategy helps our designer because its HTML code is reutilized over and over. Would you say this is a correct approach? What about performace? I know be need to

Re: [htmltmpl] TMPL_SET -- this would be nice to have.

2006-05-17 Thread Roger Burton West
On Wed, May 17, 2006 at 09:00:53AM -0400, Dmitri Tikhonov wrote: >Oh, this is very neat. Is this it (confused by author name): >http://search.cpan.org/~djr/HTML-Template-Set-1.009/Set.pm No - mine predates that, but I didn't upload it to CPAN because while it is good enough for my use I don't th

Re: [htmltmpl] TMPL_SET -- this would be nice to have.

2006-05-17 Thread Philip Tellis
Sometime Today, DT cobbled together some glyphs to say: Maybe we can get Sam to integrate it into HTML::Template proper? Not going to happen. read list archives and documentation for why. -- God made everything out of nothing, but the nothingness shows through. -- Paul Valery

Re: [htmltmpl] TMPL_SET -- this would be nice to have.

2006-05-17 Thread Dmitri Tikhonov
On Wed, 2006-05-17 at 08:54 -0400, Roger Burton West wrote: > On Wed, May 17, 2006 at 08:51:02AM -0400, Dmitri Tikhonov wrote: > > >1. Is this feasible to implement? > > I have done that very thing in my HTML::Template::Set extension > module. Oh, this is very neat. Is this it (confused by auth

Re: [htmltmpl] TMPL_SET -- this would be nice to have.

2006-05-17 Thread Roger Burton West
On Wed, May 17, 2006 at 08:51:02AM -0400, Dmitri Tikhonov wrote: >1. Is this feasible to implement? I have done that very thing in my HTML::Template::Set extension module. Copy on request. Roger --- Using Tomcat but need to do more? Need to s

[htmltmpl] TMPL_SET -- this would be nice to have.

2006-05-17 Thread Dmitri Tikhonov
Dear List, In most of my templates, I have a header and a footer templates that get included from the main template, which I assume is a very common scenario. My problem is that tag is in the header template and it needs to change for each template. There are two approaches that I can currently

Re: [htmltmpl] Small questions.

2006-05-17 Thread Roger Burton West
On Wed, May 17, 2006 at 09:21:35AM -0300, Matias Alejo Garcia wrote: >2) Wouldn't be nice to have a template comment tag? You can get the same effect with: comments here Roger --- Using Tomcat but need to do more? Need to support web servi

[htmltmpl] Small questions.

2006-05-17 Thread Matias Alejo Garcia
Hi all!I've been using Template::HTML for 3 months, I would like to ask you a few questions1) In our project we are using around 50 different templates, It is very common for us to do something like:                     So, some of our pages include 200 templates (w