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.


In reply to Re^18: aXML vs TT2 by Logicus
in thread aXML vs TT2 by Logicus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.