I am in the process of building an isomorphic JavaScript framework and I need some help deciding between two options for our templates.
I have two different strategies I am trying to choose between. I have both working and functionally either will be fine, but thing in particular I am trying to think about now is which one would be easier to grok and more accepted by developers/contractors we hire or community members we get to help out on open source pieces.
Note: both options using our jeff.js templating lib which is essentially JavaScript/JSON instead of HTML.
The basic idea here is to have Node functions that are used to either bind data on the server side or generate HTML for the client side. For ex: