Data-JavaScript-Anon reviews

RSS | Module Info

Data-JavaScript-Anon (0.4) ****

This module creates fragments of JavaScript for assigning data to an array or hash, based on a Perl data structure. The resulting JavaScript is nicer than that produced by Data::JavaScript, and, despite the name of this module, it is capable of naming the JavaScript variables if necessary.

However having to use class methods, rather than exported functions, is very tedious, _viz_:


Object-orientation makes no sense at all here: there isn't an object in sight.

The ->script_wrap method possibly doesn't belong in this module (and I have a minor quibble with its including the deprecated lang attribute) but it isn't really causing any harm.