jade mixin arguments with bracket throw an syntax error -



jade mixin arguments with bracket throw an syntax error -

i create mixin this( knockout virtual elem binding)

mixin ko(condition) != "<!-- ko "+condition+'-->' // /ko

but when want call

+ko('if:condition()')

it throw error : uncaught syntaxerror: unexpected token illegal

maybe ast parse issue suppose way work arount it?

all right found ugly way deal it

+ko("if:condition(\u0029")

jade

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -