JS::Chicken

Templating module for Javascript
Download

JS::Chicken Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Stevan Little
  • Publisher web site:
  • http://search.cpan.org/~stevan/

JS::Chicken Tags


JS::Chicken Description

Templating module for Javascript JS::Chicken is a templating module for Javascript.SYNOPSIS // simple Hello world example $('< div >Hello < span >Nobody< /span >< /div >').process_template({ 'span' : "World" }); // produces < div >Hello < span >World< /span >< /div > // slightly more complex example $('< div >Hello < a href="#" >Nobody< /a >< /div >').process_template({ 'a' : new Chicken.Callback(function (tmpl, selector) { var target = tmpl.find(selector); target.attr({ href : 'http://www.world.com' }); target.html("World") }) }); // produces < div >Hello < a href="http://www.world.com" >World< /a >< /div > ,--, ,--. ,--. ,----.. ,--.'| ,---, ,----.. ,--/ /| ,---,. ,--.'| / / ,--, | :,`--.' | / / ,---,': / ' ,' .' | ,--,: : | | : :,---.'| : '| : :| : :: : '/ / ,---.' |,`--.'`| ' : . | ;. /| | : _' |: | '. | ;. /| ' , | | .'| : : | | . ; /--` : : |.' || : |. ; /--` ' | / : : |-,: | | : ; | ; | ' ' ; :' ' ;; | ; | ; ; : | ;/|| : ' '; | | : | ' | .'. || | || : | : ' | : .'' ' ;. ; . | '___ | | : | '' : ;. | '___ | | ' | | |-,| | | | ' ; : .'|' : | : ;| | '' ; : .'|' : |. ' : ;/|' : | ; .' ' | '/ :| | ' ,/ ' : |' | '/ :| | '_.'| | | | '`--' | : / ; : ;--' ; |.' | : / ' : | | : .'' : | .' | ,/ '---' .' ; |,' | | ,' ; |.' `---` '---' `---` '---' `----' '---' ,~. ,-'__ `-, {,-' `. } ,') ,( a ) `-.__ ,',')~, Requirements: · Perl


JS::Chicken Related Software