Text extends BaseTemplate { Text(final Handlebars handlebars, final String text, final String escapeChar) { super(handlebars); int length = text.length(); this.text = new char[length]; text.getChars(0, length, this.text, 0); this.escapeChar = escapeChar; } Text(final Handlebars handlebars, final String text, final String escapeChar);   Text(final Handlebars handlebars, final String text); @Override String text(); char[] textWithoutEscapeChar(); Text append(final char[] text);  }
@Test public void newText() { assertEquals("a", new Text(new Handlebars(), "a").text()); }
@Test public void newTextSequence() { assertEquals("abc", new Text(new Handlebars(), "abc").text()); }