Dug.js – A JSONP to HTML Script
1–10 of 20 posts
Re: Dug.js – A JSONP to HTML Script
#2Re: Dug.js – A JSONP to HTML Script
#3Re: Dug.js – A JSONP to HTML Script
#4Clean, concise, no dependencies, straightforward to use, what's not to like.
Re: Dug.js – A JSONP to HTML Script
#5Another way to implement smart templates is to use XSLT, which is both standardized as well as longtime proven. XSLT is used commonly used with XML but with DefiantJS, it's trivial to transform JSON structures with XSL (additionally, it's possible to search JSON structures with XPath queries using this lib; http://defiantjs.com/#xpath_evaluator).
Re: Dug.js – A JSONP to HTML Script
#6Re: Dug.js – A JSONP to HTML Script
#7Templating solutions such as Mustache and Handlebars falls short when the need to add intelligence to the template. In such cases, the template needs to extended with helper functions, which leads to scattered templating. Another way to implement smart templates is to use XSLT, which is both standardized as well as longtime proven. XSLT is used commonly used with XML but with DefiantJS, it's trivial to transform JSON…
Re: Dug.js – A JSONP to HTML Script
#8Templating solutions such as Mustache and Handlebars falls short when the need to add intelligence to the template. In such cases, the template needs to extended with helper functions, which leads to scattered templating. Another way to implement smart templates is to use XSLT, which is both standardized as well as longtime proven. XSLT is used commonly used with XML but with DefiantJS, it's trivial to transform JSON…
XSLT is great for transforming XML datasets to other XML datasets. It's just not designed for outputting web pages.
Re: Dug.js – A JSONP to HTML Script
#9Templating solutions such as Mustache and Handlebars falls short when the need to add intelligence to the template. In such cases, the template needs to extended with helper functions, which leads to scattered templating. Another way to implement smart templates is to use XSLT, which is both standardized as well as longtime proven. XSLT is used commonly used with XML but with DefiantJS, it's trivial to transform JSON…
NB I've used XSLT a lot over the years (not client side though) and I have a healthy respect for what is possible with it - but as I rather prefer JSON to XML these days it seems a bit like overkill.
Re: Dug.js – A JSONP to HTML Script
#10Templating solutions such as Mustache and Handlebars falls short when the need to add intelligence to the template. In such cases, the template needs to extended with helper functions, which leads to scattered templating. Another way to implement smart templates is to use XSLT, which is both standardized as well as longtime proven. XSLT is used commonly used with XML but with DefiantJS, it's trivial to transform JSON…
What are the testing options like for XSLT, are you able to run good automated tests against your templates?