Re: Part of output into variable
"Kiss Gabor (Bitman)" <kissg-8/[email protected]> Wed, 24 Sep 2014 14:31:00 +0200 (CEST)
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
> Is it possible to catch output of a BLOCK and to assign > it to a scalar variable for later use? > (And the same but without writing Perl code? :-) Oh! I got it. After google-ing an hour or so: http://template-toolkit.org/docs/manual/Directives.html#section_BLOCK > You can use an anonymous BLOCK to capture the output of a template fragment. Sorry for the line noise. Gabor