
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
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 773 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
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.