componentjs / builder2.js

builder for component
50 stars 20 forks source link

Remain quotes #72

Closed timaschew closed 10 years ago

timaschew commented 10 years ago

here is jade snippet which fail without this PR

mixin hyperlink-left(param)
    != require('hyperlink')

+hyperlink-left()

it produce a template which will be compiled into

"buf.push(null == (jade_interp = require('hyperlink')) ? '' : jade_interp);"

which then breaks if you replace the require call with double quotes.