tdumitrescu / virtual-jade

Compile Jade templates to Hyperscript for Virtual DOM libraries
Other
31 stars 4 forks source link

update to jade v2 #2

Open jonathanong opened 9 years ago

jonathanong commented 9 years ago

when released

doublerebel commented 8 years ago

I started looking into this and pug/jade-v2 passes the basic tests but fails on include/extends.

Thanks for your work, it was easy to make a gulp-pug-hyperscript plugin based on virtual-jade and the example of virtual-jade-loader.

tdumitrescu commented 8 years ago

Awesome, thanks for looking into it. Glancing at your build results ("Error: ENOENT: no such file or directory, open 'test/fixtures/extended-layout.jade'"), it seems to be looking for .jade files instead of .pug. In this repo's test fixtures, we specify the file extension (e.g., https://github.com/tdumitrescu/virtual-jade/blob/9329e0bbe61732c893dc64680609367e6a2a1778/test/fixtures/include.jade#L3) - what happens if you update your fixtures to include the .pug extension?