Rendering blade conditionals should not require white space #45316
Unanswered
WordsofDefiance
asked this question in
Ideas
Replies: 1 comment
-
Great idea, also what about writing without $run=true echo 'Hola Mundo'if($run)echo 'First Run' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When rendering conditionals in blade, this is valid:
However, if any of the conditionals are not preceded by whitespace, that conditional statement will fail.
Assuming
$condition1
is true, the above statement renders asTEXT A@elseif($condition2) TEXT B
.I don't see a reason for this to act this way. Could it possibly be fixed so that conditional directives don't need to be surrounded by whitespace?
Beta Was this translation helpful? Give feedback.
All reactions