You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Thanks for writing this library btw! I'm starting to use it quite a lot on my website.)
I found a behavior difference compared with the original javascript implementation. With the original implementation, using a partial that doesn't exist will cause an error. Also, using a partial before its definition works fine.
With handlebars-rust, using a partial that doesn't exist will silently render as empty (even in strict mode). Using a partial before its definition will also silently render as empty.
before
{{> foo}}
{{> bar}}
after
{{#*inline "foo"}}
foo
{{/inline}}
The text was updated successfully, but these errors were encountered:
garyemerson
changed the title
Partial blocks before definition render as empty
Partial block behavior differences from original implementation
Apr 11, 2023
(Thanks for writing this library btw! I'm starting to use it quite a lot on my website.)
I found a behavior difference compared with the original javascript implementation. With the original implementation, using a partial that doesn't exist will cause an error. Also, using a partial before its definition works fine.
With handlebars-rust, using a partial that doesn't exist will silently render as empty (even in strict mode). Using a partial before its definition will also silently render as empty.
Here's an example template that showcases these behaviors (javascript implementation playground link):
The text was updated successfully, but these errors were encountered: