Package com.github.jknack.handlebars
Interface Decorator
-
- All Known Implementing Classes:
InlineDecorator
public interface DecoratorA decorator allows a declarative means to both annotate particular blocks with metadata as well as to wrap in behaviors when desired, prior to execution.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(Template fn, Options options)Decorate a template with metadata.
-
-
-
Method Detail
-
apply
void apply(Template fn, Options options) throws IOException
Decorate a template with metadata.- Parameters:
fn- Decorated template.options- Options object.- Throws:
IOException- If something goes wrong.
-
-