in reply to Re^17: aXML vs TT2
in thread aXML vs TT2
No I didn't get your point, not because I failed to understand it, but because your wrong. It's not your fault and I can understand that it's tricky to make the leap from where your at to where I'm at without a decent set of documentation, but I am working hard to try and bridge that gap from this side and I only have one pair of hands!
Your assertion that you cannot overload the subs is just completely wrong and I don't understand how you think you can justify that assertion.
Take the <db_select> tag for instance, in the background it exists as:
$plugins->{'db_select'} = sub { ... the code here ... };
The system allows for individual sites to have their own private subs and even for individual actions to have their own private subs, as defined by modules which you the end user build and which the system includes at compile time.
If you don't like any given tag then in your private module you just write your own version and it automatically overloads the default version.
my $plugins = { db_select => sub { ... your code here ... }, some_other => sub { ... your code here ... } };
say for instance you want to extend the system so that you can use any given CPAN module, for instance Image::Resize
use Image::Resize; my $plugins = { image_resize => sub { ... interface code here ... } };
It really is as simple as that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^19: aXML vs TT2
by ikegami (Patriarch) on Oct 23, 2011 at 04:33 UTC | |
by Logicus (Initiate) on Oct 23, 2011 at 04:55 UTC | |
by ikegami (Patriarch) on Oct 23, 2011 at 05:14 UTC | |
by Logicus (Initiate) on Oct 23, 2011 at 05:16 UTC | |
|
Re^19: aXML vs TT2
by ikegami (Patriarch) on Oct 23, 2011 at 04:25 UTC | |
by Logicus (Initiate) on Oct 23, 2011 at 04:28 UTC | |
by ikegami (Patriarch) on Oct 23, 2011 at 04:42 UTC | |
by Logicus (Initiate) on Oct 23, 2011 at 04:57 UTC | |
by ikegami (Patriarch) on Oct 23, 2011 at 05:11 UTC | |
|