use of com.squarespace.template.Variables in project template-compiler by Squarespace.
the class InternationalFormattersTest method format.
private String format(String locale, Formatter impl, Arguments args, String json) throws CodeException {
Context ctx = new Context(JsonUtils.decode(json), Locale.forLanguageTag(locale));
impl.validateArgs(args);
Variables variables = new Variables("@", ctx.node());
impl.apply(ctx, args, variables);
return variables.first().node().asText();
}