Closed vendethiel closed 10 years ago
o.OOOO
good call :)
:D.
Actually went with something totally different tho : https://github.com/Nami-Doc/Watchlist/blob/master/component-jade-fixed.js
I'm still not happy with it, I'll probably get it to compiles templates:".jade" with render() and scripts:".jade" with compileClient. I guess yours is for component 1.x tho
this one could def use help. we stopped using jade a while ago so i haven't needed to maintain
fair enough, I'll wait to see how it goes after component 1.0 is released and will come back to this
sounds good, happy to transfer it to you if you end up wanting to maintain after the dust subsides
https://github.com/Nami-Doc/Watchlist/commit/32226b6e0169eeaaa875f5e074f90db2393df80a
that works like I want it for jade :
"scripts": ["template.jade"]
will have typeof require('template.html') == 'object'
(using compileClient)
and
"templates": ["template.jade"]
will have typeof require('template.html') == 'string'
(using render)
I think