Re: [Templates] Date and Time Template tool kit

2010-02-04 Thread Octavian Râsnita
From: hemanth reddy Hi [% close_time=2000/12/21 4:20:36 %]how to covert close_time to number of seconds since epochcan i do it using [%USE Date%]? [% MACRO dt(date) BLOCK; IF date.match('\d\d\d\d/\d\d/\d\d \d\d:\d\d:\d\d'); USE dt = DateTime(from_string = date, pattern = '%Y/%m/%d

Re: [Templates] How to access filename of template inside template

2010-01-01 Thread Octavian Râsnita
From: David Favor da...@davidfavor.com Someone let me know how to get the filename of current file being processed. You can use [% template.name %]. Octavian ___ templates mailing list templates@template-toolkit.org

Re: [Templates] Extracting strings for localization.

2009-12-21 Thread Octavian Râsnita
From: Bill Moseley mose...@hank.org On Mon, Dec 21, 2009 at 8:14 AM, Clinton Gormley cl...@traveljury.comwrote: Ah ok. Yeah, xgettext.pl just extracts from text in l() or loc(), not quoted strings in general. A nice feature would be to pass in a list of names to match in case you use

Re: [Templates] Evaluate a TT variable that contain a TT string

2009-11-27 Thread Octavian Râsnita
From: C. Chad Wallace cwall...@lodgingcompany.com At 8:13 PM on 27 Nov 2009, Octavian Râsnita wrote: From: C. Chad Wallace cwall...@lodgingcompany.com At 8:45 AM on 26 Nov 2009, Randal L. Schwartz wrote: Octavian == Octavian Râsnita orasn...@gmail.com writes: Octavian but if I put

Re: [Templates] Evaluate a TT variable that contain a TT string

2009-11-26 Thread Octavian Râsnita
From: Marc Chantreux marc.chantr...@biblibre.com On Thu, Nov 26, 2009 at 12:57:18PM +0100, Harald Joerg wrote: Is it possible to interpret somehow page_body variable to be processed like a template? why just not PROCESS data file ? do you plane to generate templates on fly ? that means

Re: [Templates] Evaluate a TT variable that contain a TT string

2009-11-26 Thread Octavian Râsnita
From: Randal L. Schwartz mer...@stonehenge.com Octavian == Octavian Râsnita orasn...@gmail.com writes: Octavian but if I put just simple html code in the database ... then your successor will submit your code to thedailywtf.com ... and we'll all have a good laugh at your expense. Seriously

Re: [Templates] Evaluate a TT variable that contain a TT string

2009-11-26 Thread Octavian Râsnita
From: Randal L. Schwartz mer...@stonehenge.com Octavian == Octavian Râsnita orasn...@gmail.com writes: Octavian What's wrong? To store html in the database or to use TT markers in Octavian that html code? (And it will help me if you'll also tell me why and Octavian how can I do

Re: [Templates] Evaluate a TT variable that contain a TT string

2009-11-26 Thread Octavian Râsnita
From: Bill Moseley mose...@hank.org On Thu, Nov 26, 2009 at 2:07 PM, Octavian Râsnita orasn...@gmail.comwrote: HTML is a view. Databases are for models. I agree with this, and I also don't like it, but I couldn't find a better way. I need to offer a way of creating/modifying the pages

Re: [Templates] Access a macro in all templates?

2009-10-12 Thread Octavian Râsnita
From: Larry Leszczynski lar...@emailplus.org Hi Octavian - Is it possible to define a macro in a single place and access it in all the templates? [cut] Now I just need to find how I can include this in Catalyst... You should be able to put variables, MACROs and BLOCK definitions in