S sajal Active member Jan 7, 2020 #1 It seems that {{ }} and { } both works while printing variables in the template. For ex: {{ $myVar }} and { $myVar } both seems to be working. So, what's the correct way?
It seems that {{ }} and { } both works while printing variables in the template. For ex: {{ $myVar }} and { $myVar } both seems to be working. So, what's the correct way?
Jeremy P XenForo developer Staff member Jan 7, 2020 #2 You can use either for echoing a variable, but you can embed expressions inside of double braces (like ternary expressions or math).
You can use either for echoing a variable, but you can embed expressions inside of double braces (like ternary expressions or math).