Re: [Templates] Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-08 Thread Tony Bowden
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

Re: [Templates] Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-07 Thread Ed
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

Re: [Templates] Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-07 Thread Gunther Birznieks
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

RE: [Templates] Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-07 Thread Jesse Erlbaum
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?

Re: [Templates] Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-07 Thread Tony Bowden
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

Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-06 Thread Sam Tregar
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

Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-06 Thread Perrin Harkins
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

Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-06 Thread wsheldah
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'

Re: Separating Aspects (Re: separating C from V in MVC)

2002-06-05 Thread Sam Tregar
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: >

Separating Aspects (Re: separating C from V in MVC)

2002-06-05 Thread Andy Wardley
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