On Sat, Jun 08, 2002 at 08:51:48AM +0800, Gunther Birznieks wrote:
I'm a huge fan of passing Date::Simple objects, which can then take a
strftime format string:
[% date.format(%d %b %y) %]
[% date.format(%Y-%m-%d) %]
And the latter does not require a programmer?
Of course not. It just
On Thu, Jun 06, 2002 at 05:08:56PM -0400, Sam Tregar wrote:
Suppose you have a model object for a concert which includes a date. On
one page, the designers want to dipslay the date in a verbose way with
the month spelled out, but on another they want it abbreviated and fixed
length so
On Fri, Jun 07, 2002 at 09:14:25AM +0100, Tony Bowden wrote:
On Thu, Jun 06, 2002 at 05:08:56PM -0400, Sam Tregar wrote:
Suppose you have a model object for a concert which includes a date. On
one page, the designers want to dipslay the date in a verbose way with
the month spelled out,
Wardley [EMAIL PROTECTED]
cc: modperl List [EMAIL PROTECTED], Template
Toolkit List [EMAIL PROTECTED] (bcc:
Wesley Sheldahl/Lex/Lexmark)
Subject: Re: Separating Aspects (Re: separating C from V in MVC)
Here's my theory: the best usage of most templating systems are virtually
Sam Tregar wrote:
Now, I don't use HTML::Template::Expr. I think it's generally not such a
good idea. But it's there if you want it...
For posterity, and possible inclusion in the next rev of the templating
tutorial, how would you recommend people handle this sort of situation
without
On Thu, 6 Jun 2002, Perrin Harkins wrote:
For posterity, and possible inclusion in the next rev of the templating
tutorial, how would you recommend people handle this sort of situation
without using HTML::Template::Expr?
Suppose you have a model object for a concert which includes a date.
Continuing from the thread on the modperl mailing list:
On Sun, Jun 02, 2002 at 05:04:01PM -0400, Sam Tregar wrote:
I don't think the standard HTML::Template has support for formatting
numbers, dates, etc.
And thank the sweet lord it doesn't! HTML::Template is a do one thing
and do it
On Wed, 5 Jun 2002, Andy Wardley wrote:
In TT, you would usually pre-declare a particular format in a config
file, pre-processed templates, or some other global style document.
e.g.
[% USE money = format('%.02f') %]
In your main page templates you would do something like this:
[%