When comparing Pure.js vs Nunjucks, the Slant community recommends Nunjucks for most people. In the question“What are the best JavaScript templating engines?” Nunjucks is ranked 5th while Pure.js is ranked 28th.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Automatically extends JavaScript libraries available
If a Javascript library is available in the page when it's loaded, Pure will automatically extend it to use it inside the templates.
Pro Very user friendly
Pro Building blocks for CMS Websites
Another token based system with all of the logic, looping and variable control that other engines provide. But in addition it supports some more advanced page composition elements e.g. block inheritance, includes, layout inheritance, custom tags and macros — all absolutely perfect for a CMS where pages are typically composed of a series of “building blocks”.
Reference:
link
Pro Suppported by Mozilla
Pro Has Jinja2 as role model
Pro Open Source
Cons
Con Injection not explicit in template
Looking at the template, we cannot see where content will be injected. Instead, all we see are empty tags.
Con Not enough separation
The controller knows too much about the template.
Con Not many reasources outside the official documentation
PureJS is not very popular and it's not used by many. Because of this, there are not many guides or tutorials out there for Pure.js other than the official documentation.