I don't really like the jade syntax and was wondering if I could do this simple comparison using hoganJS instead?
The example code is written in JADE.
I did some googling and there seems to be mixed opinion.. I just want to know if there is a way or will I need to change something?
if user
li
a(href='/dashboard') Dashbaord
li
a(href='/logout') Logout
else
li
a(href='/login') Logi§n
block body