Replies: 2 comments
-
@sera2007 not sure what you're talking about. Try this: module.exports = {
files: {
templates: { joinTo: 'javascripts/app.js' },
},
plugins: {
pugjs: {
// you options here
}
}
} |
Beta Was this translation helpful? Give feedback.
-
@sera2007 , for pugjs-brunch the key is
For precompilation you must to use 2 options: module.exports = {
files: {
templates: { joinTo: 'javascripts/app.js' },
},
plugins: {
pug: {
preCompile: true,
preCompilePattern: /\.html\.pug$/
}
}
} The above settings will generate functions (in javascripts/app.js) that returns plain HTML strings for all files ending with ".html.pug" wherever they are --inside the "app" directory, except in "assets/". Example:
|
Beta Was this translation helpful? Give feedback.
-
I'm using the code
module.exports = { ... templates: { joinTo: 'javascripts/app.js' }, },
plugins: { pugjs: { staticBasedir: 'app/static_pug', staticPretty: true, compileDebug: true, }, ....
But I don't get anything as result. I was trying to change joinTo param, but it didn't work for me. Do you have any thinking?
Beta Was this translation helpful? Give feedback.
All reactions