2.0.0 • Published 9 years ago

jdata v2.0.0

Weekly downloads
17
License
ISC
Repository
github
Last release
9 years ago

jdata

A clean way to consume Data http://truonghuutien.github.io/jdata/

String Extend

jdata.apply

Simply create an dynamics String. Like printf.

jdata.print("My Name is {name.first}.uppercase()", {name:{first:"John"}});

jdata.map

Bind an Object.

If your data is an Object, like an Instance.

var templatedObject = new jdata({
    firstname	: "{name.first}",
    lastname	: "{name.last}"
}, {
    name		: {
        first	: "John",
        last	: "Doe"
    }
});

Bind an Collection of object.

If your data is an complex Array. Like a Collection of ressources.

var dataArray = new jdata({
    firstname	: "{name.first}"
}, [
    {
        name	: {
            first	: "John"
        }
    }, {
        name	: {
            first	: "Peter"
        }
    },{
        name	: {
            first	: "Oliver"
        }
    }
]);

Client's side

If you need some json's template in your interface, checkout the github repository to see what you can do with jQuery and Bootstrap.

2.0.0

9 years ago

0.2.0

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago