Open nelsonic opened 8 years ago
what about using Lo-dash/underscore as template engine? both libraries are good for work with collections and are needed on a lot of projects by themself, and they comes with a simple template engine that can run on client and server sides.
@gabrielperales underscore or _lodash_ is a really good suggestion. However I'm not a fan of the syntax of underscore/lodash ... http://underscorejs.org/#template or https://lodash.com/docs#template I don't think is especially _beginner friendly_... do you?
Most people are jumping on the React.js Bandwagon:
Mostly because Facebook are doing a great _Marketing Job_ of making it Fashionable...
We would prefer to use native Web Components because they are a _Web Standard_: http://www.w3.org/standards/techs/components#w3c_all
But sadly, there is not yet widespread adoption for them in the major browsers: http://caniuse.com/#search=components
So, while we wait for Internet Explorer to catch up, we are thinking of using http://riotjs.com because its much smaller and thus faster-to-learn than anything else out there...
@nelsonic I am really keen on es6 templates. Prob not worth it unless we want to use es6 anyway. But if we do then they are a great way of building templates/fragments in a vanilla way. Like I have in the ampl tamplates
@des-des, why am I not surprised that you're keen on ES6 Template Literals...? :stuck_out_tongue_winking_eye: I too am glad this feature made it into ES6. I don't think the implementation is as simple as our other options, but given that they are a language standard it makes sense to use it. :+1:
What is the simplest possible way to create templates for server-side rendering?