
io.pebbletemplates.boot.autoconfigure.PebbleProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pebble-spring-boot-starter Show documentation
Show all versions of pebble-spring-boot-starter Show documentation
Spring Boot starter for Pebble Template Engine
The newest version!
package io.pebbletemplates.boot.autoconfigure;
import java.util.Locale;
import org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("pebble")
public class PebbleProperties extends AbstractTemplateViewResolverProperties {
public static final String DEFAULT_PREFIX = "/templates/";
public static final String DEFAULT_SUFFIX = ".peb";
private Locale defaultLocale;
private boolean strictVariables;
private boolean greedyMatchMethod;
public PebbleProperties() {
super(DEFAULT_PREFIX, DEFAULT_SUFFIX);
this.setCache(true);
}
public Locale getDefaultLocale() {
return this.defaultLocale;
}
public void setDefaultLocale(Locale defaultLocale) {
this.defaultLocale = defaultLocale;
}
public boolean isStrictVariables() {
return this.strictVariables;
}
public void setStrictVariables(boolean strictVariables) {
this.strictVariables = strictVariables;
}
public boolean isGreedyMatchMethod() {
return this.greedyMatchMethod;
}
public void setGreedyMatchMethod(boolean greedyMatchMethod) {
this.greedyMatchMethod = greedyMatchMethod;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy