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

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

The newest version!






ISpincastPebbleTemplatingEngineConfig (org.spincast:spincast-framework 0.9.28 API)












org.spincast.plugins.pebble

Interface ISpincastPebbleTemplatingEngineConfig

  • All Known Implementing Classes:
    SpincastPebbleTemplatingEngineConfigDefault


    public interface ISpincastPebbleTemplatingEngineConfig
    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, thi 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."

Copyright © 2016. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy