/* * Copyright 2013-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.github.instaweb.jade.autoconfigure; import org.springframework.boot.context.properties.ConfigurationProperties; /** * @author Marlon Bernardes */ @ConfigurationProperties(prefix = "spring.jade") public class JadeProperties { private String prefix = "classpath:/templates/"; private String suffix = ".jade"; private String contentType = "text/html"; private String charSet = "utf-8"; private boolean cache = true; private String[] viewNames; private boolean prettyPrint; public String getPrefix() { return prefix; } public void setPrefix(String prefix) { this.prefix = prefix; } public String getSuffix() { return suffix; } public void setSuffix(String suffix) { this.suffix = suffix; } public boolean isCache() { return cache; } public void setCache(boolean cache) { this.cache = cache; } public String[] getViewNames() { return viewNames; } public void setViewNames(String[] viewNames) { this.viewNames = viewNames; } public String getContentType() { return contentType + (charSet != null ? ";" + charSet : ""); } public void setContentType(String contentType) { this.contentType = contentType; } public String getCharSet() { return charSet; } public void setCharSet(String charSet) { this.charSet = charSet; } public boolean isPrettyPrint() { return prettyPrint; } public void setPrettyPrint(boolean prettyPrint) { this.prettyPrint = prettyPrint; } }