Class SectionIdHandlebarsHelper

  • All Implemented Interfaces:
    com.github.jknack.handlebars.Helper<Object>

    @Component
    public class SectionIdHandlebarsHelper
    extends BaseHelper
    The {{sectionId}} handlebars helper is a simply utility helper that outputs the Section Id.

    Usage

    The {{sectionId}} handlebars helper is a simply utility helper that outputs the Section Id.

    Example

       {{sectionId}}
     
    • Constructor Detail

      • SectionIdHandlebarsHelper

        @Autowired
        public SectionIdHandlebarsHelper​(ISectionAPI sectionApi)
    • Method Detail

      • apply

        public Integer apply​(Object context,
                             com.github.jknack.handlebars.Options options)
        Description copied from class: BaseHelper
        The apply 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 interface com.github.jknack.handlebars.Helper<Object>
        Specified by:
        apply in class BaseHelper
        Parameters:
        context - The currently executing context.
        options - The options.
        Returns:
        The generated output.