silverstripe-framework/thirdparty/jquery-metadata
Ingo Schommer 4e91eae50a MINOR Re-added jquery.metadata plugin, updated from 2.0 to 2.1
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92506 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:30:16 +00:00
..
test MINOR Re-added jquery.metadata plugin, updated from 2.0 to 2.1 2009-11-21 02:30:16 +00:00
.piston.yml MINOR Re-added jquery.metadata plugin, updated from 2.0 to 2.1 2009-11-21 02:30:16 +00:00
jquery.metadata.js MINOR Re-added jquery.metadata plugin, updated from 2.0 to 2.1 2009-11-21 02:30:16 +00:00
META.json MINOR Re-added jquery.metadata plugin, updated from 2.0 to 2.1 2009-11-21 02:30:16 +00:00
README MINOR Re-added jquery.metadata plugin, updated from 2.0 to 2.1 2009-11-21 02:30:16 +00: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 {}).