segment-boneyard / component-jade

A plugin to transpile Jade files for the component builder.
12 stars 8 forks source link

We're actually in 2014 #24

Closed vendethiel closed 10 years ago

vendethiel commented 10 years ago

I think

ianstormtaylor commented 10 years ago

o.OOOO

ianstormtaylor commented 10 years ago

good call :)

vendethiel commented 10 years ago

: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

ianstormtaylor commented 10 years ago

this one could def use help. we stopped using jade a while ago so i haven't needed to maintain

vendethiel commented 10 years ago

fair enough, I'll wait to see how it goes after component 1.0 is released and will come back to this

ianstormtaylor commented 10 years ago

sounds good, happy to transfer it to you if you end up wanting to maintain after the dust subsides

vendethiel commented 10 years ago

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)