leonidas / transparency

Transparency is a semantic template engine for the browser. It maps JSON objects to DOM elements by id, class and data-bind attributes.
http://leonidas.github.com/transparency/
MIT License
969 stars 112 forks source link

First draft for object like directives #48

Closed miohtama closed 12 years ago

miohtama commented 12 years ago

Here is a first proposal for object like directives

Long list issues to solve

See renderObjectDirectives function:

https://github.com/miohtama/transparency/blob/orig/src/transparency.coffee

See spec examples:

https://github.com/miohtama/transparency/blob/orig/spec/object_directives.spec.coffee

pyykkis commented 12 years ago

Thanks, I took a look and implemented #36 based on that.