yahoo/mojito — pull request #143 by caridy (2012-05-05 04:53:42+00:00)
Title: Handlebars support in mojito.

Let's get the ball rolling for the handlebars support in mojito. This is just a preliminary job, I plan to add all the missing features into this branch to match the current mustache support. Feel free to reject the pull request for now.

For now, I also added the new yui->3.5.0 to the dependency list although only used by the handlebars engine implementation who requires yui/handlebars. Eventually, when the transition to the new YUI node package happens, should be easy to merge this changes.

Client side is mostly covered by yui 3.5.0, we just need to create the mojito wrapper for it.

TODO:

- tests
- figure out how to call done and composite.done without specifying the content-path as part of the view object.
- create view-engines/hb.client.js as a wrapper for YUI 3.5.0 handlebars implementation

I don't plan to add support for {{> partial}} since that requires some extra machinery to resolves paths etc.