[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] CAF methodology


On Fri, 10 Nov 2006, Robert Hicks wrote:

I think that is a pretty cool idea and was wondering if anyone likes that as well. Is there a plugin for it or anything (outside of CAF)?

Seems a little silly to use a plugin for:

  $template->param(foo_mode => $self->foo);

And:

  <tmpl_var foo_mode>

If you wanted to get really fancy and support any mode:

  my %run_modes = $self->run_modes();
  $template->param("${_}_mode" => $self->$_) for
    grep { $template->query(name => "${_}_mode") } keys %run_modes;

-sam

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.