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;
    }