Skip to content

A jquery plugin for easy REST integration between JSON and HTML. Maintaining harmony and peace between interface programmers and server programmers when using REST services.

License

Notifications You must be signed in to change notification settings

fabianomiranda/miranda-js

Repository files navigation

Miranda-js

A jquery plugin for easy integration between JSON and HTML. Maintaining harmony and peace between interface programmers and server programmers when using REST services.

  • jQuery support: 1.7+

For credits and examples, see: http://www.fabianomiranda.com/miranda-js/

For downloads, see: http://www.fabianomiranda.com/miranda-js/miranda-js.zip

Documentation

The attribute name of the list or object must be the name of the key in its HTML code between [[]].

Example:
{KEY:"Miranda-JS"}
<h1>[[KEY]]</h1>

Simple Array or Object integration

<div id="box">
    <h1>[[name]]</h1>
    <h2>[[lastname]]</h2>
</div>
<script>
var list = {"name": "Fabiano", "lastname": "Miranda"};
$("#box").mirandajs(list);
</script>

Simple Object list integration

<div id="box">
    <h1>[[name]]</h1>
    <h2>[[lastname]]</h2>
</div>
<script>
var list = [{"name": "Fabiano", "lastname": "Miranda"},{"name": "Kaio", "lastname": "Silva"}];
$("#box").mirandajs(list);
</script>

Credits

About

A jquery plugin for easy REST integration between JSON and HTML. Maintaining harmony and peace between interface programmers and server programmers when using REST services.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published