
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
express-partial-templates
Advanced tools
A middleware that will use the views path to create a partials key-value object that makes the file paths of partial templates acessible on the locals property of an HTTP response.
A middleware that will use the views
path and the view engine
string that are stored against an Express app
object to generate a key-value object that identifies and makes accessible the file paths of partial templates against res.locals.partials
on execution.
npm install [--save] express-partial-templates;
var app = require('express')();
app.set('view engine', 'html');
app.set('views', path.join(__dirname, '/views'));
app.use(require('express-partial-templates')(app));
app.use(function (req, res, next) {
// res.locals.partials has been set.
next();
});
FAQs
A middleware that will use the views path to create a partials key-value object that makes the file paths of partial templates acessible on the locals property of an HTTP response.
The npm package express-partial-templates receives a total of 518 weekly downloads. As such, express-partial-templates popularity was classified as not popular.
We found that express-partial-templates demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.