Hi cool ppl from the users group,

i've made a reverse templating engine and i would like to share it with you.
i havent seen it other at other places so the name reverse templating is
kind of created from scratch.

Well as you dont get it by the name ill give an example of what it does (for
the ones that are still reading):

var template = '<span>{data}</span><div>{another_data}</div>';
var html = '<span>data-value</span><div>anothervalue</div>';
template.matchWith(html); // returns {'data': 'data-value', 'another_data':
'anothervalue'}


for the source-code:

http://github.com/fabiomcosta/mootools-meio-template/tree/master


You could contribute with a better name for it too :D
Feel free to contribute or talk shit about it.


--
Fábio Miranda Costa
Solucione Sistemas
Front-End Engineer
http://meiocodigo.com

Reply via email to