Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Templating system needs help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Tore Aursand, post: 4763164"] I'm looking forward to have a look at it! Hmm. I really don't think I can do that, if I understand you correctly. There are ways to dynamically create lists, and that is done by using a "template tag" which is - uhm - interpolated (?) into the "real template tag". Don't know how I can explain this any better, but take a look at this example template file: This <%% WORD_1 %%> a [%% TPL_1 %%] In my script I do something like this: my $Template = Template->new( ... ); $Template->subst( 'WORD_1', 'is' ); $Template->subst( 'TPL_1', 'WORD_2' ); print $Template->get_template(); The output will be: This is a <%% WORD_2 %%> As you can see, the []-tags have been converted to <>-tags by now, which is ideal to let the templating system create/generate templates. I have been trying out some code since my original post, and I will post that code very soon (when it works a bit better than it does now). I feel that I'm getting quite close to dealing with that list thing. :) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Templating system needs help
Top