Class HandlebarsHelper<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ERROR_PREFIX  
      static java.lang.String ERROR_SUFFIX  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static RenderCache getRenderCache​(com.github.jknack.handlebars.Options options)  
      protected java.lang.String handleError​(java.lang.String message)
      Handle invalid helper data without exception details or because none was thrown.
      protected java.lang.String handleError​(java.lang.String message, java.lang.String logExclusive, java.lang.Throwable cause)
      Handle invalid helper data with exception details in the log message.
      protected java.lang.String handleError​(java.lang.String message, java.lang.Throwable cause)
      Handle invalid helper data with exception details in the log message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.jknack.handlebars.Helper

        apply
    • Constructor Detail

      • HandlebarsHelper

        public HandlebarsHelper()
    • Method Detail

      • handleError

        protected java.lang.String handleError​(java.lang.String message)
        Handle invalid helper data without exception details or because none was thrown.
        Parameters:
        message - message to log and return
        Returns:
        a message which will be used as content
      • handleError

        protected java.lang.String handleError​(java.lang.String message,
                                               java.lang.Throwable cause)
        Handle invalid helper data with exception details in the log message.
        Parameters:
        message - message to log and return
        cause - which occurred during application of the helper
        Returns:
        a message which will be used as content
      • handleError

        protected java.lang.String handleError​(java.lang.String message,
                                               java.lang.String logExclusive,
                                               java.lang.Throwable cause)
        Handle invalid helper data with exception details in the log message. Also additional information regarding the issue is written in the logs.
        Parameters:
        message - message to log and return
        logExclusive - additional information just for the log
        cause - which occured during application of the helper
        Returns:
        a message which will be used as content
      • getRenderCache

        protected static RenderCache getRenderCache​(com.github.jknack.handlebars.Options options)