CREEATION / gulp-jade-globbing

Globbing Jade includes & extends the easy way.
https://www.npmjs.com/package/gulp-jade-globbing
MIT License
11 stars 1 forks source link

Crashing for when use the globbing in a file that is extended #3

Closed ivanbanov closed 9 years ago

ivanbanov commented 9 years ago

Im trying to use the globbing to load all components from a folder

// default.jade

include ../components/**/*

doctype html
html
  head
    include ../partials/head

    body
      include ../partials/header
      include ../partials/menu
      include ../partials/main
      include ../partials/footer

In a second file Im extending this first one that use globbing

extends ../layouts/default.jade

block main

when I try to compile Im getting a error

Error in plugin 'gulp-jade'
Message:
    /Users/ivanbanov/github/natue/naturals/templates/layouts/default.jade:1
  > 1| include ../components/**/*
    2|
    3| doctype html
    4| html

ENOENT, no such file or directory '/Users/ivanbanov/github/natue/naturals/templates/components/**/*.jade'
Details:
    errno: -2
    code: ENOENT
    path: /Users/ivanbanov/github/natue/naturals/templates/layouts/default.jade
    syscall: open
CREEATION commented 9 years ago

merged & npm updated. thank you!