You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggled with PUG template using official PUG example like this one:
- var user = {description:'foo bar baz'}- var authorised =false#userifuser.description
h2.green Description
p.description=user.descriptionelse if authorised
h2.blue Description
p.description.
User has no description,
why not add one...
else
h2.red Description
p.description User has no description
I'm getting this error:
template:5: template:9: Error lex: lexClass: expect class name line: 9
Also comparison with == operator:
if .someVar=="someValue"
div someVar has someValue
leads to:
template: index:131: unexpected "=" in operand
The text was updated successfully, but these errors were encountered:
I feel a lot of confusion here especially with '.' prefix before variable in Basic example. Maybe this is the issue but what is right example of making simple comparison in fiber Pug template? I tried every combination with no expected results
I'm struggled with PUG template using official PUG example like this one:
I'm getting this error:
Also comparison with
==
operator:leads to:
The text was updated successfully, but these errors were encountered: