publicclass / express-partials

Express 3.x Layout & Partial support.
182 stars 146 forks source link

Not having a layout file causes a file not found #32

Closed tedkulp closed 11 years ago

tedkulp commented 11 years ago

I'm using express-partials for the partials, not the layout functionality. Not having a layout template causes an error, so this pull request checks to make sure it still exists and if not, falls back cleanly.

slaskis commented 11 years ago

Looks great! But could you make the tests pass by using var exists = path.existsSync || fs.existsSync ?

tedkulp commented 11 years ago

Yup, no problem. I saw that Travis failed, but didn't get a chance to go back and look. I'll try and do that before the weekend.

tedkulp commented 11 years ago

There we go. Sorry for the delay.

slaskis commented 11 years ago

Thanks!