Skip to content

ambrosiustopor/jsonml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

jsonml

JSONML transformation utility.

Basic Usage

Include the utility:

<script src="JSONML-1.0.0.js"></script>

Create JSONML elements:

var names = ['John', 'Sarah', 'Mike'];

var ul = ['ul', {'class': 'list'}];
var li;

names.forEach(function(name) {
li = ['li', {'class':'list-item'}, name];
	ul.push(li);
});

Use makeDOMElement to transform the JSONML elements to DOM elements:

$container = jQuery('#container-names');
$container.append(
	JSONML.makeDOMElement(ul)
);

License

Licensed under the MIT license. (http://opensource.org/licenses/MIT)

About

JSONML transformation utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published