Committer: ailyin
a little bit of documentation, thanks to dpetrov for reminding me this is necessaryU trunk/cgi-bin/LJ/Share.pm
Modified: trunk/cgi-bin/LJ/Share.pm =================================================================== --- trunk/cgi-bin/LJ/Share.pm 2011-03-22 11:42:33 UTC (rev 18674) +++ trunk/cgi-bin/LJ/Share.pm 2011-03-23 02:24:42 UTC (rev 18675) @@ -1,3 +1,14 @@ +=head1 HOW TO USE + + # somewhere near to your need_res calls: + LJ::Share->request_resources; + + # when printing HTML + print '<a href="#">Share</a>' + . LJ::Share->render_js({ 'entry' => $entry }); + +=cut + package LJ::Share; use strict; use warnings;