Class SectionNameHandlebarsHelper
- java.lang.Object
-
- com.terminalfour.publish.handlebars.helper.BaseHelper
-
- com.terminalfour.publish.handlebars.helper.section.SectionNameHandlebarsHelper
-
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<Object>
@Component public class SectionNameHandlebarsHelper extends BaseHelper
The {{sectionName}} handlebars helper is a simply utility helper that outputs the Section name.Usage
The {{sectionName}} handlebars helper is a simply utility helper that outputs the Section name.
Example
{{sectionName}}
-
-
Constructor Summary
Constructors Constructor Description SectionNameHandlebarsHelper(ISectionAPI sectionApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(Object context, com.github.jknack.handlebars.Options options)
Theapply
method is the main entry point for handlebars.java helpers.
-
-
-
Constructor Detail
-
SectionNameHandlebarsHelper
@Autowired public SectionNameHandlebarsHelper(ISectionAPI sectionApi)
-
-
Method Detail
-
apply
public String apply(Object context, com.github.jknack.handlebars.Options options)
Description copied from class:BaseHelper
Theapply
method is the main entry point for handlebars.java helpers.It is called internally by the handlebars.java engine when a matching handlebars.java expression is encountered.
- Specified by:
apply
in interfacecom.github.jknack.handlebars.Helper<Object>
- Specified by:
apply
in classBaseHelper
- Parameters:
context
- The currently executing context.options
- The options.- Returns:
- The generated output.
-
-