Package com.github.jknack.handlebars
Interface Decorator
- All Known Implementing Classes:
InlineDecorator
public interface Decorator
A 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
-
Method Details
-
apply
Decorate a template with metadata.- Parameters:
fn- Decorated template.options- Options object.- Throws:
IOException- If something goes wrong.
-