Live data from Hacker News

Show HN: Shunter – a Node.js application to read JSON and translate it into HTML

github.com

11–13 of 13 posts

Re: Show HN: Shunter – a Node.js application to read JSON and translate it into HTML

#11
post #2

What problem does it solve ? is it XSLT for JSON ?

I don't see it solving one problem so much as lots of them. With a decoupled front-end you can make applications which are much more flexible for dealing with change. Imagine swapping out the entire backend application, or completely re-writing the front-end - you can easily do either since the integration between the two is formalised and documented by the json contracts. That also means a new front-end developer ca…

In terms of a concrete example of what we actually use it for, http://www.nature.com/srep/ is using Shunter, as is http://www.nature.com/search?journal=srep&q=physics&subject=. Behind the scenes they're completely different apps, but they use the same implementation of the visual language so there's a consistent UI.

Re: Show HN: Shunter – a Node.js application to read JSON and translate it into HTML

#12
post #10

You put this in the front of your JSON API and BAM don't have to write anything else?

With small changes to the API, it's possible. Shunter requires a certain `Content-Type` header to be sent in order to trigger the rendering process. But largely yes, if your back-end can serve JSON already you should be able to make it play well with Shunter quite easily

Re: Show HN: Shunter – a Node.js application to read JSON and translate it into HTML

#13
post #9
post #8

Earlier quoted context omitted.

This probably indicates that we need to do a bit of work on our documentation :) You're right about the general purpose - however Shunter also handles front-end assets: images, CSS, and JavaScript, as well as making it easy to extend the rendering engine. In terms of benefits of using Shunter over a home-rolled solution, the same question could/should be asked of any framework. Shunter is very well tested, has been u…

Thanks! I'll keep it in mind and will try Shunter next time I do one of the Prismic-backed sites.

Cool - let us know if we can help in any way :)
Post reply on HN