handlebars-rust icon indicating copy to clipboard operation
handlebars-rust copied to clipboard

cli doesn't support partials

Open jayv opened this issue 1 year ago • 1 comments

Running the cli against the partials example template file it fails to resolve the partial templates, what's missing?

handlebars-cli template2.hbs  '{
    "title": "example 0",
    "parent": "base0"
}'

Error rendering template2.hbs: Error rendering "template2.hbs" line 4, col 1: Partial not found base0

jayv avatar Nov 22 '24 18:11 jayv

Because with cli currently we only have one input template so it's not able to reference another template. If it's possible you can make base0 an inline partial in template2.hbs

sunng87 avatar Nov 27 '24 07:11 sunng87