use of com.squarespace.template.plugins.platform.i18n.InternationalPredicates 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.i18n.InternationalPredicates in project template-compiler by Squarespace.
the class PlatformUnitTestBase method predicateTable.
@Override
public PredicateTable predicateTable() {
PredicateTable table = super.predicateTable();
table.register(new CommercePredicates());
table.register(new ContentPredicates());
table.register(new SlidePredicates());
table.register(new SocialPredicates());
table.register(new InternationalPredicates());
return table;
}
use of com.squarespace.template.plugins.platform.i18n.InternationalPredicates in project template-compiler by Squarespace.
the class TemplateC method predicateTable.
protected static PredicateTable predicateTable() {
PredicateTable t = new PredicateTable();
t.register(new CorePredicates());
t.register(new CommercePredicates());
t.register(new ContentPredicates());
t.register(new SlidePredicates());
t.register(new SocialPredicates());
t.register(new InternationalPredicates());
return t;
}
Aggregations