silverstripe-framework/thirdparty/jquery-metadata
Ingo Schommer ac8e75b2a6 ENHANCEMENT Updated jquery.metadata from ~v.1.0 to v2.1 (located in sapphire/thirdparty/jquery-metadata
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100846 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 14:18:54 +13:00
..
test ENHANCEMENT Updated jquery.metadata from ~v.1.0 to v2.1 (located in sapphire/thirdparty/jquery-metadata 2011-02-02 14:18:54 +13:00
jquery.metadata.js ENHANCEMENT Updated jquery.metadata from ~v.1.0 to v2.1 (located in sapphire/thirdparty/jquery-metadata 2011-02-02 14:18:54 +13:00
META.json ENHANCEMENT Updated jquery.metadata from ~v.1.0 to v2.1 (located in sapphire/thirdparty/jquery-metadata 2011-02-02 14:18:54 +13:00
README ENHANCEMENT Updated jquery.metadata from ~v.1.0 to v2.1 (located in sapphire/thirdparty/jquery-metadata 2011-02-02 14:18:54 +13:00

jQuery Metadata Plugin

By John Resig

This plugin is capable of silently, and automatically, extracting metadata 
from classes, random attributes, and child elements.

For example, you can do:
<li class="someclass {some: 'data'} anotherclass">...</li>
OR
<li data="{some:'random', json: 'data'}">...</li>
OR
<li><script type="data">{some:"json",data:true}</script> ...</li>

The default is the first method, but you can always change it by twiddling 
the options. This means that there is at least one option here that can 
appease you.

There's also a bunch of options (like loading data into a single property 
and the ability to ignore braces {}).