Don’t forget to wrap the JSON plugin to catch "</script>" in your JSON string.....especially if you’re spitting out data that came from “the wild”.
-FG On 8/7/10 2:38 PM, Jens Rehsack wrote: > On 08/06/10 23:46, Tosh Cooey wrote: >> I have a template that delivers HTML, yay! I would like to have the >> possibility for the template to dump the data structures as JSON rather >> than changing the underlying PERL since I am too lazy to change my scripts. >> >> Anyone have a spare JSON TT plugin laying around to save me from having >> to make an effort? > > Doesn't the first match fit's your needs: > http://search.cpan.org/search?query=Template+JSON&mode=all > >> While I'm at it, anyone want to point me to the TT Plugin instructions >> to save me from having to search for them? >> >> Doesn't hurt to ask ;) > > Doesn't hurt to search first ;) > > Jens > > _______________________________________________ > templates mailing list > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
