jBind (Bind Data to Template)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

jBind (Bind Data to Template)

a.karimzadeh

jBind is jQuery plugin for binding any complex data to templates in an
easy way. By using $(template).bind(data) you can bind your data to
the template.
template is something like this
<code>
<div>
    <!--data-->
        <div class="block" id='{id}'>
            <b>{name} {family}</b>, <i>[ Birthdate: {birthdate} ]</i>
        </div>
    <!--data-->
</div>
</code>
and data is
<code>
var data = {
id:1,
name:'Scott',
family:'Adams',
birthdate: 'June 8 1957'
};
</code>

You can download it from jQuery website:
http://plugins.jquery.com
or directly from here:
http://arashkarimzadeh.com/index.php/downloads.html?func=select&id=9
or you can find out more about jBind and download samples @
http://arashkarimzadeh.com/index.php/jquery/10-jbind-jquery-bind-template.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Plugins" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jquery-plugins?hl=en
-~----------~----~----~----~------~----~------~--~---