Grain 0.6.6 Revision Notes

Added support of dynamic revision numbers, like 0.6.+. Concrete values still must be specified for the major and minor numbers of the Grain version, so the declarations like 0+, 0.+ or 0.6+ will not be accepted. This is done on purpose to ensure that Grain themes always use a compatible Grain version. The application.properties:

1
grain.version = 0.6.+  # loads the latest grain revision

Declarations with specific revision numbers are also supported:

1
grain.version = 0.6.6  # loads the grain revision 0.6.6

Another minor change is that we added defaults for non_script_files site configuration option to disable embedded Groovy code processing for CSS and JavaScript files:

1
non_script_files = [/(?i).*\.(js|css)$/]

You can still include a JS or CSS file by using the script property in the file header:

1
2
3
---
script: true
---

Or just rewrite the non_script_files option altogether from the site configuration:

1
non_script_files = [/(?i).*\.(js)$/] // excludes only JS files.

Comments