in reply to Re^30: aXML vs TT2
in thread aXML vs TT2
Safely returning a "<" from a plugin.
To be safe, a plugin needs to look like
sub plugin_name { my $text_to_return = ...; $text_to_return =~ s{<}{<post_include>path/to/lt</post_include>}g; return $text_to_return; }
Even then, that's not enough to make a reusable plugin because it hardcodes the path to a template.
By the way, since every plugin (except <post_include>) returns template code, this design is slow because there are soooo many templates to process, and none of them can be precompiled.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^32: aXML vs TT2
by Logicus (Initiate) on Oct 23, 2011 at 15:38 UTC | |
by ikegami (Patriarch) on Oct 23, 2011 at 19:36 UTC | |
by Logicus (Initiate) on Oct 24, 2011 at 00:04 UTC | |
by Logicus (Initiate) on Oct 24, 2011 at 00:05 UTC | |
by ikegami (Patriarch) on Oct 24, 2011 at 00:40 UTC | |
by Logicus (Initiate) on Oct 24, 2011 at 00:52 UTC | |
|