Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
When comparing Pure.js vs Twigjs, the Slant community recommends Twigjs for most people. In the question“What are the best JavaScript templating engines?” Twigjs is ranked 16th while Pure.js is ranked 28th.
Ranked in these QuestionsQuestion Ranking
Common Questions
Other Questions
No other questions
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 Comepetible with Twig on PHP
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.