— Wait, how will it know if the data changes?
<!-- Template Container Element -->
<div data-content-text="myTag" data-content-text-format="myFormatter"></div>
<!-- Destination Element -->
— Is it two-way?
— So if it changes, you have to run it again, but I am planning on adding a watcher
— Object.observe is coming
— Result, loaded template:
<div id="myContainer"> <div> HELLO WORLD! </div></div>
— The jquery-template author has a formatter scheme which I find nasty
— Mine is much simpler by simply targeting the data injector attribute, then followed by -format
— One attribute per formatter, whereas his has up to 3
— For now I will just provide a callback and a patch function