segment-boneyard / component-jade

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

Handle empty jade files #18

Closed azhang closed 10 years ago

azhang commented 10 years ago

return empty file instead of undefined

ianstormtaylor commented 10 years ago

does jade fail itself if we just jade-ify an empty string? ideally even the empty string one would go through the same code paths as the non-empty string

azhang commented 10 years ago

It doesn't fail. The if(!file.contents) check does not need to be there at all.

ianstormtaylor commented 10 years ago

perfect that sounds like a good solution to rip it out to me