Interface SafeMustacheTemplate
public interface SafeMustacheTemplate
-
Method Summary
Modifier and TypeMethodDescriptionvoidsubstitute(Writer out, Object params) Substitutes param values safely and writes the result to the out writer.voidsubstitute(Writer out, Object defaultObj, Object params) Substitutes param values safely and writes the result to the out writer.
-
Method Details
-
substitute
Substitutes param values safely and writes the result to the out writer.Param methods have to be annotated with
InputSubstitutionSafeotherwise they wont be substituted.- Parameters:
out- the writer for the outputparams- scope parameters to be substituted
-
substitute
Substitutes param values safely and writes the result to the out writer. Also has a default object to check values forParam methods have to be annotated with
InputSubstitutionSafeotherwise they wont be substituted.- Parameters:
out- the writer for the outputdefaultObj- the object ot try resolve values against if params can't be found.params- scope parameters to be substituted
-
getTemplate
String getTemplate()- Returns:
- the original template used to render
-