Package fmpp.dataloaders
Class HtmlUtilsDataLoader
java.lang.Object
fmpp.dataloaders.HtmlUtilsDataLoader
- All Implemented Interfaces:
DataLoader
Returns a hash that contains useful directives for HTML generation.
- img: Same as HTML img, but automatically calculates the width and/or height attributes if they are missing.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HtmlUtilsDataLoader
public HtmlUtilsDataLoader()
-
-
Method Details
-
load
- Specified by:
load
in interfaceDataLoader
args
- Arguments that the caller specifies for this directive call. Not null. The implementation should check if it understands all arguments, and it should throwjava.lang.IllegalArgumentException
if it doesn't.- Returns:
- The object that will be accessed in FreeMarker templates.
The object can be of any type. FreeMarker will wrap the object so
that it is visible as an FTL variable. However, if the object
implements
freemarker.template.TemplateModel
, then it will not be wrapped, as it is already an FTL variable. - Throws:
Exception
-
setXHtml
public void setXHtml(boolean xHtml)
-