node.js - How to set default doctype in Gulp-Jade -
i having problem gulp-jade
: jade compiler adds value html attributes without value, breaks angularjs setup. (e.g. div(ui-view)
becomes <div ui-view="ui-view">
when want <div ui-view>
.
the problem not occur files have doctype html
, since working 'partials' no help.
i running .pipe(jade())
without additional options. apparently gulp-jade
supports jade api options, listed here, not see 1 apply here.
there undocumented doctype
option. .pipe(jade({doctype: 'html'}))
compiles template under html5 doctype
Comments
Post a Comment