From: Kutter M. <mar...@si...> - 2004-10-12 08:42:48
|
Hi * ! Recently I had the need to both use [% PERL %] blocks in TT templates and allow templates to [% INCLUDE %] themselves, i.e. allow TT recursion. The attached patch makes the use of [% PERL %] blocks configurable by the directive (patch against OpenInteract2-1.99_04). [content_generator TT] eval_perl = 1|0 in the server.ini configuration file. The default is not to allow the evaluation of [% PERL %] blocks in TT templates (OI2 currently does not allow Perl blocks). Recursion can be configured via the [content_generator TT] recursion = 1|0 directive. The default is not to allow recursion (OI2 currently does not allow recursion). Making recursion and PERL blocks configurable grealy increases OI2 functionality (especially recursion - some stuff like trees is quite difficult to display without). As the default values represent the current OI2 behaviour, the change should be non-intrusive for existing applications. Regards, Martin Kutter |