Think of this as val() crossbred with serializeArray() and raised on steroids. Or a JSON/HTML mapping tool. Or a template plugin that can handle complex data structures, works in reverse and uses only HTML as its syntax. It works with single values. It works with value arrays. It works with whole objects. Or all three combined. Oh, and did i mention that it is really easy to configure and/or extend? Flexibility abounds, but it mostly just works, making your code robust and simple. Just remember, it has a generic name, because it really is generally useful and values() makes more sense as a method than mycoolpluginname().
This plugin is meant to have smart defaults, be very configurable and be very easy to extend. Flexibility is especially important. You can pass it any complex data structure and it will flexibly and intelligently map it to your markup, or reverse that and ask a section of your markup to give up its values. Or get/set one value at a time. Feedback is welcome, as is help with anything (code, tests, docs, etc).
This project is also home to two additional plugins that are dependent upon Values: XClone and Sync. XClone provides more advanced templating functionality. Sync uses Values to keep two separate sections of markup synchronized at all times.
(Oh, and these are all actually dual-licensed: GPL and MIT, like jQuery.)
30 Day Summary Apr 22 2013 — May 22 2013
|
12 Month Summary May 22 2012 — May 22 2013
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.