Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: RFC : Abstraction Markup

by yitzchak (Sexton)
on Jul 13, 2011 at 18:03 UTC ( [id://914181]=note: print w/replies, xml ) Need Help??


in reply to Re^4: RFC : Abstraction Markup
in thread RFC : Abstraction Markup

I think you misunderstood my question. From what I can tell, this is supposed to be completely generic, being able to attach handlers to any "tag" (or have it pass through verbatim if there is no handler), with each handler receiving its children as content and returning a rendered version. With <> tags, child content has already been processed, but handling of () tags is supposed to take precedence over their children; does that mean the contents of a () tag aren't subject to any handlers? Or that upon return of the () tag handler, any tags in the return are handled? Other?

Replies are listed 'Best First'.
Re^6: RFC : Abstraction Markup
by Anonymous Monk on Jul 13, 2011 at 19:25 UTC

    I think you misunderstood my question

    I don't think I did :) I explained how the given template example unravels in both perl and tt2 terms

    does that mean the contents of a () tag aren't subject to any handlers?

    I don't understand what you're asking :)

    Based on his actual proof of concept (both old, new) "(DB)" "DB" is the name of plugin, its perl code, either ...DB.aXMLpl or ...DB.pm

    Since (DB) has no () children, it is processed first, as a complete unit

    Its responsible for processing all tags contained within as a template

    Or that upon return of the () tag handler, any tags in the return are handled? Other?

    Lets try another , shorter example

    (Foo) <Fruit>Apples</Fruit> (Bar) <pants>red</pants><d>varyable</d> (/Bar) (/Foo)
    That would be functionally equivalent to this perl code
    return $Foo->( '<Fruit>Apples</Fruit>' .$Bar->('<pants>red</pants><d>varyable</d>') );

    Like chromatic said, its basically scheme

    Am I closer now?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://914181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-24 01:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found