use of com.squarespace.template.plugins.platform.CommerceFormatters in project template-compiler by Squarespace.
the class TemplateC method compiler.
protected Compiler compiler() {
FormatterTable formatterTable = new FormatterTable();
PredicateTable predicateTable = new PredicateTable();
// core
formatterTable.register(new CoreFormatters());
predicateTable.register(new CorePredicates());
// TODO: dynamic classpath scan and registration of plugin jars.
// squarespace
formatterTable.register(new CommerceFormatters());
formatterTable.register(new ContentFormatters());
formatterTable.register(new SocialFormatters());
formatterTable.register(new InternationalFormatters());
predicateTable.register(new CommercePredicates());
predicateTable.register(new ContentPredicates());
predicateTable.register(new SlidePredicates());
predicateTable.register(new SocialPredicates());
predicateTable.register(new InternationalPredicates());
return new Compiler(formatterTable, predicateTable);
}
use of com.squarespace.template.plugins.platform.CommerceFormatters in project template-compiler by Squarespace.
the class TemplateC method formatterTable.
protected static FormatterTable formatterTable() {
FormatterTable t = new FormatterTable();
t.register(new CoreFormatters());
t.register(new CommerceFormatters());
t.register(new ContentFormatters());
t.register(new SocialFormatters());
t.register(new InternationalFormatters());
return t;
}
Aggregations