When comparing Roots vs Hugo, the Slant community recommends Hugo for most people. In the question“What are the best static site generators?” Hugo is ranked 2nd while Roots is ranked 18th. The most important reason people chose Hugo is:
Code can be viewed [on GitHub](http://github.com/spf13/hugo).
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Active development
Roots has heavy corporate sponsorship and is worked on very actively as a full time job. That means you can rely on it.
Pro Quick deploys
You can deploy to heroku, github pages, s3, etc. with a single command.
Pro Dynamic content
Roots supports dynamic content like jekyll for every compiler and language.
Pro Currently going through an upgrade
Roots is currently in the process examining how to leverage newer technologies to make Roots even better. You can see the new project on github: https://github.com/carrot/roots-mini
Here is the blog post explaining the next phase of Roots: https://medium.com/@jescalan/eaa10c75eb22#.uacjziaej
Here is the stack they're experimenting with:
- jade - for markup
- babel - for JS and JS transforms
- postcss - for CSS transforms
- webpack - as the core compiler
As this is a work in process, it just means the future of Roots continues to look great.
Pro Custom compilers
Not only does roots support a huge number of languages and compilers out of the box, it also allows you to insert custom compilers if you want. Fun fact, roots is the only static site generator that supports dogescript
Pro Multipass compiles
Roots compiles files once for each extension, which allows for some advanced options if you get to that stage
Pro Client-side templates
Roots will precompile your templates into js, which makes it really smooth to work with client-side MV* frameworks.
Pro Quick
Since roots is written in node, everything is compiled in parallel rather than in series, making it very quick.
Pro Open-source and free
Code can be viewed on GitHub.
Pro Fast
Pro No dependencies
All other SSGs expect you to have a full toolchain setup for their language. Hugo is written in Go and distributed as an executable for unix, linux, windows and mac. Just download and run.
Pro Clean workflow
Create your new site, run the Hugo server, edit. Lather, rinse, repeat. Hugo stays out of the way.
Pro Flexible
Pro Good documentation
Pro Many themes available
Pro Draft mode
Allows you to see changes in real time.
Pro Single binary - cross platform
Pro Single source publishing
Can create PDFs, eBooks, RSS-Feeds, language and market specific Websites from single content folder.
Pro Great multipurpose development platform
We are using Hugo as the base-framework for a full blown knowledge management system, idea-management and inhouse brainstorming tool. Hugo source-code is well structures and comes with top components out of the box, that makes every solution built on this framework incredible fast and scalable accross platforms and corporate silos! Hugo - when being used as a framework is a game-changer that puts Sharepoint, Wordpress and Co. back to the shelf.
Pro Very active community
Pro Easy to add new content types, data files, and taxonomies
Cons
Con No i18n (Internationalization)
There is no i18n support out of the box. And there is only one extension that does i18n compilation with a limited feature set.