Glavin001 / atom-preview

:construction: (NO LONGER MAINTAINED) :construction: - :eyeglasses: Ultimate previewer of source code in Atom.
https://atom.io/packages/preview
MIT License
51 stars 23 forks source link

Pass filename to Jade renderer #98

Closed lasaro-dumer closed 9 years ago

lasaro-dumer commented 9 years ago

I have a similar problem of the #23 , but mine is with Jade, and not stylus

Stylus works fine for me, but jade doesn't =/

I tried the '@require' some times on jade, but had no luck It's different on jade?

image

Glavin001 commented 9 years ago

Here is the applicable code: https://github.com/Glavin001/atom-preview/blob/master/lib/renderer.coffee#L94-L101

From the docs, you're going to want to set filename field in the options:

I would accept a Pull Request that resolved this issue.