We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can I add multiple root folder ? I mean different folder containing ect templates and if yes, how can I do it?
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
I use Express. Here is how I get ECT to work with multiple sub-directories.
// View Engine setup var ECT = require('ect'); // NOTE: always watch, otherwise directory changes are not detected var ectRenderer = ECT({ watch: true, root: path.join(__dirname, 'src') }); app.engine('.ect', ectRenderer.render); app.set('view engine', 'ect'); app.set('views root', path.join(__dirname, 'src'));
router.use(function(req, res, next) { res.app.set('views', __dirname); next(); });
No branches or pull requests
Can I add multiple root folder ?
I mean different folder containing ect templates and if yes, how can I do it?
The text was updated successfully, but these errors were encountered: