Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

option to compile filename.jade to filename (without .html) #553

Closed
elf-pavlik opened this Issue · 5 comments

5 participants

@elf-pavlik

i use jade to write hbs templates which later i compile once more with handlebars

at this moment i have directory with files like:
some_name.hbs.jade
another_name.hbs.jade

and would like jade to compile them to
some_name.hbs
another_name.hbs

at this moment after jade i need to use rename to strip added .html so handlebars uses intended by me names for templates

@willrjmarshall

I would like to see the same thing

@tj
Owner
tj commented

jade < in > whatever.you.want

@darrrk

/opt/local/lib/node_modules/jade/lib/runtime.js:152
if (!filename) throw err;
^
Error: the "filename" option is required to extend templates
at Object.Parser.parseExtends (/opt/local/lib/node_modules/jade/lib/parser.js:408:13)
at Object.Parser.parseExpr (/opt/local/lib/node_modules/jade/lib/parser.js:207:21)
at Object.Parser.parse (/opt/local/lib/node_modules/jade/lib/parser.js:131:25)
at parse (/opt/local/lib/node_modules/jade/lib/jade.js:100:62)
at Object.exports.compile (/opt/local/lib/node_modules/jade/lib/jade.js:163:9)
at null. (/opt/local/lib/node_modules/jade/bin/jade:120:19)
at EventEmitter.emit (events.js:93:17)
at afterRead (fs.js:1327:12)
at Object.wrapper as oncomplete

@slang800

example: slang@oscillated:~/projects/sj$ jade < test/cases/comments.jade > bar.foo

@tj
Owner
tj commented

use --path

@tj tj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.