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
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 spe
At 04:14 PM 6/7/2002, 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, but on anot
Hey Tony --
>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") %]
Out of curiosity, at what point of flexibility do you feel it is OK for your
designers to go back to the programmers?
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
> > lengt
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 dat
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 usi
TED]> on 06/05/2002 06:45:34 PM
To: Andy 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'
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:
>
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
10 matches
Mail list logo