Package org.jbake.template
Interface TemplateEngineAdapter<Type>
-
- All Known Implementing Classes:
TemplateEngineAdapter.NoopAdapter
public interface TemplateEngineAdapter<Type>Adapts model extractor output to used template engine. This method typically wraps results of model extractions into data types suited to template engine
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTemplateEngineAdapter.NoopAdapter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Typeadapt(java.lang.String key, java.lang.Object extractedValue)Adapt value to expected output
-
-
-
Method Detail
-
adapt
Type adapt(java.lang.String key, java.lang.Object extractedValue)
Adapt value to expected output- Parameters:
key- Template keyextractedValue- Value to be used in template model- Returns:
- Value adapted for use in template
-
-