Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Set the filename option when using the jade.compile() method #7

Closed
ggrossetie opened this issue Dec 19, 2016 · 1 comment
Closed

Set the filename option when using the jade.compile() method #7

ggrossetie opened this issue Dec 19, 2016 · 1 comment

Comments

@ggrossetie
Copy link
Member

ggrossetie commented Dec 19, 2016

This option is required for relative includes and extends.

filename = ::File.join(template_dir, name + "." + engine)
jade.compile(#{template}, {pretty: true, filename: "#{filename}"});

Reference: https://pugjs.org/api/reference.html#options

@ggrossetie ggrossetie changed the title Set the filename option when using the jade.render() method Set the filename option when using the jade.compile() method Dec 19, 2016
ggrossetie added a commit to ggrossetie/asciidoctor-template.js that referenced this issue Dec 21, 2016
ggrossetie added a commit to ggrossetie/asciidoctor-template.js that referenced this issue Dec 21, 2016
ggrossetie added a commit that referenced this issue Feb 18, 2017
Resoles #7, set the `filename` option
@ggrossetie
Copy link
Member Author

Resolved by #8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant