in reply to Re^2: The history of a templating engine
in thread The history of a templating engine
Agreed. I've in TODO list this feature:
- move parser from POWER::iCGI module into separate POWER::Template module and make it configurable a-la (shown interface is just an example of needed features, not proposed module interface):
This way parser become 100% configurable, will have same 30 lines of code or even less, and my templates will use "tags" and escaping/converting features suitable for each format - one in html template, other in email templates, etc.use POWER::Template; my $t = POWER::Template->new(); # example configuration to simulate POWER::iCGI: $t->eval('<!--&', '-->'); $t->text('@~', '~@', \&Enc); $t->text('^~', '~^', \&EncUri); $t->text('#~', '~#', undef);
UPDATE: And don't forget, I don't write these comments to compare my template system to yours, I just wanna prove this task is much simpler than you affirm.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: The history of a templating engine
by Anonymous Monk on Sep 20, 2006 at 07:18 UTC | |
by powerman (Friar) on Sep 20, 2006 at 10:43 UTC |