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
Post a Comment