Powered by Grain


Welcome to Grain!

Grain is a lightweight and yet powerful static website generator for Groovy which purpose is to make demanding site implementation intuitive and enjoyable. Grain framework is equally well-suited for any static website, whether it is a complex and sophisticated company site or a simple and neat blog. The framework applies elegant website building concepts and allows to develop rapidly by making and seeing changes on the fly.

Grain Features

  • Variety of built-in tools With Grain, you can write articles and news using Markdown, reStructuredText and AsciiDoc markup languages, highlight your code via Python Pygments, and apply styles using SASS/SCSS
  • Full-featured preview mode Make and see changes on the fly, Grain instantly loads any changes made to a content, configuration, templates and sources to make your development experience intuitive and productive
  • Full control on a site content You can dynamically create and customize site pages using Groovy code, which makes it very simple and easy to implement blog, news and documentation websites
  • Cross-platform interoperability Grain framework is platform independant, so you can enjoy it on your favorite operating system, whether it is Mac, Windows or Linux

Latest News

SysGears team are glad to announce the release of Grain Plugin for Gradle. This plugin allows to manage Grain static websites using Gradle tasks, thus making it much easier to integrate your site with existing Gradle project.

Before giving you details on the release, our team would like to say a few words regarding the situation in our country, Ukraine. The last few months weren't like any others to us. During this time we have faced a riot, a revolution, and now we're facing a military intervention from the country that used to guarantee safety for our people. We'd like to say that despite all the circumstances, SysGears team as well as all the IT community of Ukraine continues to work in the same rhythm, showing the same responsibility and professionalism we have always shown.

SysGears team pleased to announce the release of Grain version 0.6.0. Grain is a general purpose static site generator which provides all the modern features and tools for generating any kind of HTML content: Markdown, RST and AsciiDoc markup rendering, page templates, dynamic content handling, resources compression and minification, code highlighting via Python Pygments and more.

Latest Blog Posts

There are very few things in Grain framework that need a detailed explanation except being described in the docs. However, there's one thing, which I really want to clarify in details for Grain users. I wanted to write an article for the people who seek for simple instructions for implementing tasks that require complex manipulation to site pages, like including information from one page to another, creating or replacing pages, etc. As an example, in this guide I will tell you how to create paginated blog archive for your site.

Grain is written in Groovy and offers a good degree of flexibility for implementing demanding and sophisticated features. The framework is designed to be straightforward and obvious in its core concepts (such as the ones we will discuss later) and also simple and user-friendly when it comes to specific implementations. The latter is achieved thanks to the themes and theming approach in general.