资 源 简 介
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