Skip to content
forked from tmpvar/weld

Template antimatter for Node.js (Browsers too!)

Notifications You must be signed in to change notification settings

ironchefpython/weld

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my fork of weld, to add a few enhancements to support my personal projects.

Utimately, I'd like to be have a version of weld that is able to perform the following actions.

var $ = require('jquery');

require('weld').plugin($);                  // import weld and register it with jquery as a plugin


var weldInstance = $('.myDiv').weldable();  // created a "weldable" element

weldInstance.weld(data)                     // welds new data to the element

weldInstance.clear();                       // removes the element and all siblings

weldInstance.weld(data)                     // creates the element again, and welds data
                                            // to it

weldInstance.append(otherData)              // adds a sibling to the element, and welds 
                                            // otherData to it

weldInstance.update(dataArray)              // updates the element and all siblings, matching 
                                            // elements with data based on a key



data = weldInstance.unweld()                // The is the key activity I'm trying to support
                                            // My goal is to be able to reverse the weld function
                                            // and extract an object, or an array of objects 
                                            // from the same block of HTML that would be a target 
                                            // of a weld

About

Template antimatter for Node.js (Browsers too!)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%