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

org.koshinuke.yuzen.thymeleaf.YuzenDialect Maven / Gradle / Ivy

There is a newer version: 0.1.0
Show newest version
package org.koshinuke.yuzen.thymeleaf;

import java.util.HashSet;
import java.util.Set;

import org.thymeleaf.dialect.AbstractDialect;
import org.thymeleaf.processor.IProcessor;
import org.thymeleaf.templateresolver.TemplateResolver;

/**
 * @author taichi
 */
public class YuzenDialect extends AbstractDialect {

	final TemplateResolver markdownResolver;

	public YuzenDialect(TemplateResolver md) {
		this.markdownResolver = md;
	}

	@Override
	public String getPrefix() {
		return "yz";
	}

	@Override
	public boolean isLenient() {
		return false;
	}

	@Override
	public Set getProcessors() {
		final Set processors = new HashSet();
		processors.add(new MarkdownProcessor(this.markdownResolver));
		return processors;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy