@jcgregorio I added the most basic data-binding and controller support to expand this example to be a mini-angular of sorts... sort-of. Change the text input and watch as the model updates and then the controller re-complies the template and updates the DOM.

Wouldn't be cleaner change the i and key state variables for repeat_index and repeat_key? It's more readable and reduce the posibility of variables conflict, and also other template mechanism Templator do the same.