-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert: render original reference when a variable is undefined
caused issues with how variables inside components were rendered, since as far as expressions are concerned, they are undefined - they ended up output as-is too... needs more testing to get right
- Loading branch information
Showing
3 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
532e40d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may be experiencing this.
I have a lot of variables defined in the build env.
example: "something for the build env"
In my components I do things like
{{ example || page.example || 'fallback example' }}
Then use in the template -
<x-example property="{{ example || page.example || 'fallback example' }}" />
It seems to work everywhere except in one example, but that example changes. If I remove the fallback and just write
{{ page.example }}
it works.I will try and prepare an example repo and see if i can replicate it on a clean install, although it might be challenging.