Static Website Building Framework For Groovy
Grain is a lightweight, powerful, static website generator for Groovy that makes demanding static website implementation intuitive and enjoyable.
The live preview makes it possible to change the code and see the updates on the fly. Grain instantly reloads any changes made to the website content and saves time on implementing styles and layouts.
Grain allows you to pass custom preferences to website pages and perform dynamic modifications of resources by executing the embedded Groovy code inside content files and templates.
Resource-to-URL mapping minimizes the number of templates by allowing you to associate the same page file with different URLs, content, and preferences.
Infinite template nesting and tag libraries make Grain suitable for large projects. The built-in tags designed for combining page components will help you keep your templates DRY and readable.
Grain supports Markdown, RST, and AsciiDoc: TxtMark and PegDown markdown processors are used for rendering Markdown; Python Docutils for RST; and Ruby Asciidoctor for AsciiDoc.
Thanks to the Gradle plugin, it's easy to integrate any Grain theme with a Gradle project and build a website with up-to-date documentation and source samples.
Grain comes with themes and examples for an easy start. The framework has been around for a while, and it has a large number of website templates to play with.