Class AbstractFreeMarkerConfig
java.lang.Object
org.javalite.activeweb.freemarker.AbstractFreeMarkerConfig
- Author:
- Igor Polevoy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfreemarker.template.Configuration
Returns an instance ofFreeMarkerTag
.abstract void
init()
Called by framework during initialization.void
inject(com.google.inject.Injector injector)
Injects user tags with membersvoid
registerTag(String name, FreeMarkerTag tag)
Registers an application-specific tag.void
setConfiguration(freemarker.template.Configuration config)
-
Constructor Details
-
AbstractFreeMarkerConfig
public AbstractFreeMarkerConfig()
-
-
Method Details
-
setConfiguration
public void setConfiguration(freemarker.template.Configuration config) -
getConfiguration
public freemarker.template.Configuration getConfiguration() -
registerTag
Registers an application-specific tag.- Parameters:
name
- name of tag.tag
- tag instance.
-
getTag
Returns an instance ofFreeMarkerTag
. Use this method to further configure specific tags.- Parameters:
tagName
- name of tag as used in a template- Returns:
- instance of registered tag
-
init
public abstract void init()Called by framework during initialization. -
inject
public void inject(com.google.inject.Injector injector)Injects user tags with members- Parameters:
injector
- user tags with members using this injector.
-