Interface SpincastPebbleTemplatingEngineConfig

All Known Implementing Classes:
SpincastPebbleTemplatingEngineConfigDefault

public interface SpincastPebbleTemplatingEngineConfig
Configurations for the Pebble templating engine plugin. We use "@ImplementedBy" to specify the default configurations to use if none is specified in a Guice module.
  • Method Details

    • getExtension

      com.mitchellbosecke.pebble.extension.Extension getExtension()
      Pebble extension to register: allows you to add custom filters, functions, etc.
    • getTemplateCacheItemNbr

      int getTemplateCacheItemNbr()
      The number of template item to keep in cache.
      Returns:
      the max number of items to cache. If <= 0, thi cache will be disabled.
    • getTagCacheTypeItemNbr

      int getTagCacheTypeItemNbr()
      The number of "cache" tag item to keep in cache. more info
      Returns:
      the max number of items to cache. If <= 0, this cache will be disabled.
    • isStrictVariablesEnabled

      boolean isStrictVariablesEnabled()
      Is the strict variable policy on?

      From the doc : "If set to true, Pebble will throw an exception if you try to access a variable or attribute that does not exist (or an attribute of a null variable). If set to false, your template will treat non-existing variables/attributes as null without ever skipping a beat."

    • getValidationMessagesTemplatePath

      String getValidationMessagesTemplatePath()
      The path to the template to use to display the validation messages of a Form' field.
    • getValidationGroupMessagesTemplatePath

      String getValidationGroupMessagesTemplatePath()
      The path to the template to use to display the validation messages of a Form's field group.