File tree Expand file tree Collapse file tree
main/java/com/github/jknack/handlebars/internal
test/java/com/github/jknack/handlebars/issues Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,6 +290,14 @@ public String text() {
290290 if (context != null ) {
291291 buffer .append (' ' ).append (context );
292292 }
293+ String params = paramsToString (this .params );
294+ if (params .length () > 0 ) {
295+ buffer .append (" " ).append (params );
296+ }
297+ String hash = hashToString ();
298+ if (hash .length () > 0 ) {
299+ buffer .append (" " ).append (hash );
300+ }
293301
294302 buffer .append (endDelimiter );
295303
Original file line number Diff line number Diff line change 1+ package com .github .jknack .handlebars .issues ;
2+
3+ import com .github .jknack .handlebars .v4Test ;
4+ import static org .junit .Assert .assertEquals ;
5+ import org .junit .Test ;
6+
7+ public class Issue596 extends v4Test {
8+
9+ @ Test
10+ public void shouldSupportNoneCharSequenceReturnsTypeFromHelperClass () throws Exception {
11+ String text = compile ("{{> partial root=this name=\" Han\" }}" ).text ();
12+ assertEquals ("{{>partial root=this name=\" Han\" }}" , text );
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments