All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.pebble.SpincastPebbleTemplatingEngineConfig.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






SpincastPebbleTemplatingEngineConfig (org.spincast:spincast-framework 1.0.0 API)












org.spincast.plugins.pebble

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 Detail

      • 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.

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy