Grain Framework

Static Website Building Framework For Groovy

About the project

Grain is a lightweight, powerful, static website generator for Groovy that makes demanding static website implementation intuitive and enjoyable.

What we offered

Live preview

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.

Embedded code processing

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 URL mapping

Resource-to-URL mapping minimizes the number of templates by allowing you to associate the same page file with different URLs, content, and preferences.

Templates and in-page tags

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.

Variety of supported markups

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.

Gradle plugin

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.

Ready to launch

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.

Technologies

Groovy

GPars

Guice