dwyl / adoro

❤️ The little publishing tool you'll love using. [work-in-progress]
http://www.dwyl.io/
32 stars 8 forks source link

Simplest possible templates for rendering content server-side (and creating static pages) #14

Open nelsonic opened 8 years ago

nelsonic commented 8 years ago

What is the simplest possible way to create templates for server-side rendering?

gabrielperales commented 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.

nelsonic commented 8 years ago

@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?

nelsonic commented 8 years ago

Most people are jumping on the React.js Bandwagon: bandwagon-750x400

Mostly because Facebook are doing a great _Marketing Job_ of making it Fashionable...

jeans-jackets-fashion

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...

des-des commented 8 years ago

@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

nelsonic commented 8 years ago

@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: