Class ChannelNameHandlebarsHelper

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

    @Component
    public class ChannelNameHandlebarsHelper
    extends BaseHelper
    The {{channelName}} handlebars helper outputs the name of the currently publishing Channel.

    It should be noted that it does not take microsites into consideration.

    Usage

    {{channelName}}

    The channelName handlebars expression is a simple tag that does not contain any configurable attributes.

    • Constructor Detail

      • ChannelNameHandlebarsHelper

        public ChannelNameHandlebarsHelper()
    • Method Detail

      • apply

        public Object apply​(Object context,
                            com.github.jknack.handlebars.Options options)
                     throws IOException
        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.
        Throws:
        IOException - If processing of the expressions fails.