-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for basedir option #64
Comments
+1 |
PRs welcome! |
Just add
|
@mathiasschopmans, could you tell me where should I look for these options, please? |
Hi @vlatri5264, If my previous answer doesn't solve your question, can you please add a link to a repository you're working on? Maybe the following module.exports = function(grunt) {
grunt.initConfig({
jade: {
yourTaskName: {
options: {
basedir: 'path/to/jade/template-root/',
},
files: [{
expand: true,
flatten: true,
cwd: 'path/to/jade/template-root/',
src: ['*.jade'],
dest: 'path/to/html/output',
ext :'.html'
}]
}
}
});
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.registerTask('default', ['jade']);
}; |
Thanks, @markdalgleish, your solution works)) |
I found mention about this option here: http://stackoverflow.com/questions/11675453/jade-loading-templates-from-different-directories#comment27283495_11677885
It allows to use absolute paths in exclude and include directives (starting with slash).
The text was updated successfully, but these errors were encountered: