Open friedlink opened 4 years ago
I can confirm that this issue is still present in LightnCandy 1.2.5. Here is the current stack trace
PHP Fatal error: Uncaught Exception: Error in 'echo message="This is what a Handlebars expression looks like {{var': expect '"' but the token ended!! in vendor/zordius/lightncandy/src/LightnCandy.php:108
Stack trace:
#0 vendor/zordius/lightncandy/src/LightnCandy.php(50): LightnCandy\\LightnCandy::handleError()
#1 test.php(34): LightnCandy\\LightnCandy::compile()
#2 {main}
thrown in vendor/zordius/lightncandy/src/LightnCandy.php on line 108
The PHP Code:
The Issue:
When including curly braces in a string when setting the parameter of a partial, a fatal error occurs:
Handlebars renders the string "To reference a variable in Handlebars use the syntax: {{varName}}."