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

org.onetwo.common.spring.ftl.NameIsTemplateConfigurer Maven / Gradle / Ivy

package org.onetwo.common.spring.ftl;

/***
 * @author way
 *
 */
public class NameIsTemplateConfigurer extends DynamicStringFreemarkerTemplateConfigurer {
	
	public static final NameIsTemplateConfigurer INSTANCE;
	static {
		INSTANCE = new NameIsTemplateConfigurer();
		INSTANCE.initialize();
	}

	public NameIsTemplateConfigurer() {
		super(new NameIsContentTemplateProvider());
	}
	
	public static class NameIsContentTemplateProvider implements StringTemplateProvider {

		@Override
		public String getTemplateContent(String name) {
			return name;
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy