# NAME
Template::Plugin::HTMLToJS - Convert HTML To JS
# VERSION
version 0.3
# SYNOPSIS
my $tt = Template->new;
$tt->process('htmltojs-template.tt');
# htmltojs-template.tt
[% USE HTMLToJS %]
[% FILTER $HTMLToJS %]
Test
[% END %]
#Will produce
document.write('Test\n src="/test.js">');
#could be use easily with on distant site
# DESCRIPTION
I have made this module to give an easy way to send html formated content to a javascript call.
For ex: you have a distant web site, and you want to display a top10 with all information,
on distant :
on yoursite : top10.tt :
[% USE HTMLToJS %]
[%FILTER $HTMLToJS %]
[%END%]
This will convert it in a proper document.write form will al escape you need.
# METHODS
## filter
Convert html into javascript
# BUGS
Please report any bugs or feature requests on the bugtracker website
https://github.com/celogeek/Template-Plugin-HTMLToJS/issues
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
# AUTHOR
celogeek
# COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by celogeek .
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.