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

2009-11-26 Thread Marc Chantreux
performance issues. isn't it possible to write functions (BLOCK) and WRAPPERs ? regards -- Marc Chantreux BibLibre, expert en logiciels libres pour l'info-doc http://biblibre.com ___ templates mailing list templates@template-toolkit.org http

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

2009-11-26 Thread Marc Chantreux
On Thu, Nov 26, 2009 at 04:01:16PM +0200, Octavian Râsnita wrote: No I don't generate templates dynamicly, but if I put just simple html code in the database You store things it database, that's why! i got it now and it makes sense. regards -- Marc Chantreux BibLibre, expert en logiciels

Re: [Templates] register vmethods?

2008-08-01 Thread Marc Chantreux
Sean, On Tue, Jul 29, 2008 at 12:13:03AM +0200, Marc Chantreux wrote: hello Sean, I'm afraid it does the same ... I was afraid for nothing: it works fine. Additionnaly, it is very simple to add methods using Template::Plugin::VMethods. many thanks for help regards -- Marc Chantreux

Re: [Templates] register vmethods?

2008-08-01 Thread Marc Chantreux
that if notice isa('MARC::Record'), TT2 uses MARC::Record::field by defaut ? regards -- Marc Chantreux BibLibre, expert en logiciels libres pour l'info-doc http://biblibre.com ___ templates mailing list templates@template-toolkit.org http://mail.template

[Templates] register vmethods?

2008-07-28 Thread Marc Chantreux
as [% notice.field('99'); %] -- Marc Chantreux BibLibre, expert en logiciels libres pour l'info-doc http://biblibre.com ___ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] register vmethods?

2008-07-28 Thread Marc Chantreux
hello Sean, I'm afraid it does the same ... On Mon, Jul 28, 2008 at 11:26:05AM -0700, Sean McAfee wrote: sub Foo::field { $_[1] } $Template::Stash::HASH_OPS-{foo} = sub { shift-field(@_) }; Template-new-process(\[% x.foo(42) %], { x = bless({ }, 'Foo' }); -- Marc Chantreux BibLibre, expert

[Templates] tpage output_path

2008-05-30 Thread Marc Chantreux
-- Marc Chantreux BibLibre, expert en logiciels libres pour l'info-doc http://biblibre.com Index: bin/tpage === --- bin/tpage (révision 1112) +++ bin/tpage (copie de travail) @@ -109,6 +109,7 @@ 'template_tag_style|tag_style