handlebars.java icon indicating copy to clipboard operation
handlebars.java copied to clipboard

"Template does not provide a @partial-block for template" error

Open pureza opened this issue 5 years ago • 0 comments

The following (arguably contrived) example fails on handlebars.java 4.1.2 but passes on http://tryhandlebarsjs.com/:

{{#*inline "hello"}}      
  Hello
{{/inline}}

{{#*inline "render"}}      
  {{> @partial-block}}
{{/inline}}


{{#>render}}
  {{#*inline "inlineTemplate"}}
    {{#>hello}}{{/hello}}
  {{/inline}}

  {{>inlineTemplate}}
{{/render}}

The error I get is:

template.hbs:10:4 does not provide a @partial-block for template.hbs:6:6

Not sure this has been reported before or even if it's been fixed on master.

Thanks.

pureza avatar Mar 19 '19 15:03 pureza