import net.pterodactylus.util.template.ClassPathTemplateProvider;
import net.pterodactylus.util.template.CollectionSortFilter;
import net.pterodactylus.util.template.HtmlFilter;
+import net.pterodactylus.util.template.MatchFilter;
import net.pterodactylus.util.template.ReflectionAccessor;
import net.pterodactylus.util.template.Template;
import net.pterodactylus.util.template.TemplateContextFactory;
public class TemplateServlet extends HttpServlet {
private Core core;
+
private final TemplateContextFactory templateContextFactory = new TemplateContextFactory();
private final Map<String, Page<ServletRequest>> pages = new HashMap<String, Page<ServletRequest>>();
});
templateContextFactory.addFilter("sort", sortFilter);
+ templateContextFactory.addFilter("matches", new MatchFilter());
templateContextFactory.addTemplateObject("core", core);
templateContextFactory.addTemplateObject("dataManager", core.getDataManager());