We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get the following erro when using the same partial two times in a row:
Error rendering "template" line 3, col 1: Cannot include self in >
reduced code:
let main_template = "/home/hobofan/tmp/testcase/main.hbs"; let two_partial = "/home/hobofan/tmp/testcase/two.partial.hbs"; handlebars.register_template_file("template", &Path::new(main_template)).ok().unwrap(); handlebars.register_template_file("two", &Path::new(two_partial)).ok().unwrap(); let data = BTreeMap::<String, String>::new(); handlebars.render("template", &data).unwrap_or_else(|e| format!("{}", e))
main.hbs:
main.hbs
one {{> two }} three {{> two }}
two.partial.hbs:
two.partial.hbs
----- TWO ----
I am not 100% sure, but I think that should be valid Handlebars. When I use another partial between the two uses of {{> two }}, everything works fine.
{{> two }}
I'm happy to provide any further information if that helps.
The text was updated successfully, but these errors were encountered:
Thank you for reporting. It seems to be a bug for checking template name. I will look into it soon.
Sorry, something went wrong.
(fix) template name tracing [#143]
74d9cf0
Signed-off-by: Ning Sun <sunng@about.me>
Released in 0.25.2
Thanks for the quick fix! 👍
sunng87
No branches or pull requests
I get the following erro when using the same partial two times in a row:
reduced code:
main.hbs
:two.partial.hbs
:I am not 100% sure, but I think that should be valid Handlebars. When I use another partial between the two uses of
{{> two }}
, everything works fine.I'm happy to provide any further information if that helps.
The text was updated successfully, but these errors were encountered: