I can't set a variable name in a class in jade:
.flag_#{ session.locale } #{ session.locale }
I have:
<div class="flag_" >en</div>
And I'd like to have
<div class="flag_en" >en</div>
Thanks
Try this (have not tested):
div(class="flag_#{ session.locale }") session.locale
As for [email protected] works this way:
div(class="flag_" + session.locale) session.locale
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With