Description
Groovy is an an agile dynamic language for Java and has a simple template engine that allows you to intermix Groovy when defining page templates for your blog.
Installation and Configuration
You must download the blojsom add-on bundle. It is available as a separate download with each release of blojsom.
- Unpack the add-on bundle ZIP file.
- Copy the asm-1.4.jar and groovy-1.0-beta-4.jar files to your blojsom installation's /WEB-INF/lib directory.
In your /WEB-INF/classes/blojsom.xml file, add the following:
<bean id="groovy" class="org.blojsom.dispatcher.groovy.GroovyDispatcher" init-method="init">
<property name="blojsomProperties">
<ref bean="defaultProperties"/>
</property>
<property name="servletConfig">
<ref bean="servletConfigFactoryBean"/>
</property>
</bean>
The defaultProperties bean should already be configured.
<bean id="defaultProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<prop key="default-blog">default</prop>
<prop key="ignore-flavors">admin, rsd</prop>
<prop key="installed-locales">de, en, fr, jp, ko, pt_BR, sv, zh_CN</prop>
<prop key="resources-directory">/resources/</prop>
<prop key="templates-directory">/templates/</prop>
<prop key="themes-directory">/themes/</prop>
<prop key="blogs-directory">/blogs/</prop>
<prop key="bootstrap-directory">/bootstrap/</prop>
</props>
</property>
</bean>
Usage
You can find a reference for the Groovy language
online.