Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Simplifying the syntax further

by tmoertel (Chaplain)
on Nov 21, 2005 at 21:15 UTC ( [id://510563]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    html {
        head { title { text "Title" } };
    ...
            p { class_ "warning"; text "paragraph" }
        }
    };
    
  2. or download this
    html {
        head { title {} "Title" };
    ...
            p { class_ "warning" } "paragraph"
        }
    };
    
  3. or download this
    sub _elem {
        my ($elem_name, $content_fn, $text) = @_;   #! added $text arg
    ...
        eval "sub $_(&@) { _elem('$_',\@_) }"    for @$elems;  #! proto
        eval "sub ${_}_(\$) { _attr('$_',\@_) }" for @$attrs;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found