org.koshinuke.yuzen.thymeleaf.YuzenDialect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yuzen Show documentation
Show all versions of yuzen Show documentation
static contents granerator
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;
}
}