Releases: moappi/json2html
Releases · moappi/json2html
v3.2.2
- Fixed Prototype pollution with json2html by removing global json2html.set
- Removed ES6 interpolation tests
- Fixed issue with rendering inside tables, parent element is now used for internal rendering and then re-appended.
v3.2.0
-
Added refresh triggers, allowing for parts of rendered templates to be updated
-
Added assignment for inputs, allowing for variables to be automatically updated when inputs are changed
v3.0.0
Refactored to work with ES6 supported browsers only!
-
Added support for native JS events
-
Extended Element class with json2html function (Element.prototype.json2html) so can be called directly from an HTML Element
-
Removed support for deprecated template attributes (tag and children)
-
Removed $.json2html jquery function
v2.2.3
Fixed the following issues
- Proper cleanup for jquery events (removal of -j2h-e event attribute)
- Added support for - (dash) in variable name for shorthand notation
v2.2.2
- Added support for Typescript
- Added support for spaces in json variable names for short hand notation
- Fixed issue with ready event firing multiple times
v2.2.1
Fixed issue with variable name starting with $
v2.2.0
Changes
- Deprecated reserved 'obj' attribute and replaced with new '{}' attribute
- Added support for multiple events per object (previously limited to 1 event per attribute)
- Added experimental ES6 literal support
- Updated examples to use new reserved {} attribute
v2.1.0
Core Library
Added obj reserved attribute to templates for specifying data objects to render (html elements and components)
Added html blocks to map data to blocks of templates
Support
Added automated testing with mocha
Updated with comprehensive examples
v2.0.0 - UNSUPPORTED
re-factored entire library
added components
added j2h-framework compatibility
Updated jQuery Events
Added onReady event for jQuery plugin