Re: [htmltmpl] Small questions.

2006-05-19 Thread Matias Alejo Garcia
On 5/18/06, Sam Tregar <[EMAIL PROTECTED]> wrote: On Thu, 18 May 2006, Matias Alejo Garcia wrote:> Maybe a good option would be to use 'memcached' (Cache::Memcached, which can> also be shared in the distributed environment, and is very easy to manage) > instead of IPC. What you think?Seems like a f

Re: [htmltmpl] Small questions.

2006-05-18 Thread Sam Tregar
On Thu, 18 May 2006, Matias Alejo Garcia wrote: Maybe a good option would be to use 'memcached' (Cache::Memcached, which can also be shared in the distributed environment, and is very easy to manage) instead of IPC. What you think? Seems like a fun project, if possibly self-defeating. I think

Re: [htmltmpl] Small questions.

2006-05-18 Thread Matias Alejo Garcia
On 5/18/06, Sam Tregar <[EMAIL PROTECTED]> wrote: 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! Maybe a good

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