When comparing Json2html vs squirrelly, the Slant community recommends Json2html for most people. In the question“What are the best JavaScript templating engines?” Json2html is ranked 30th while squirrelly is ranked 32nd. The most important reason people chose Json2html is:
Allows for jQuery events to be embedded within the template when used on the client.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Embedded jQuery Events
Allows for jQuery events to be embedded within the template when used on the client.
Pro No special template syntax to learn
Templates are JSON objects that can include javascript functions to render any complex logic.
Pro Portable to server and client
Templates are stored as JSON rather than HTML, easily ported to both client and server.
Pro Blazing Fast
In most templating benchmarks, Squirrelly equals or outperforms the speed of other templating engines.
Pro Rich and customizable features
Squirrelly supports custom helpers, partials, and filters.
Pro Not language-bound
Squirrelly isn't tied to a specific language, like HTML. That means that you can use it to generate files of all kinds, from Markdown to JavaScript to SVGs.
Pro No whitespace worries
Squirrelly is not whitespace sensitive.
Pro Super simple
Squirrelly has syntax like Mustache or Swig, and you can write your first template in a few minutes! It also works with ExpressJS right out of the box.
Cons
Con Templates can be hard to read
HTML structure for template replicated in JSON, can be hard to read.