
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
template-config
Advanced tools
Adds declarative configuration functionality to Template.
Install with npm
$ npm i template-config --save
Note that some of
In the following example, app represents the latest version of any template.js-based application, like assemble, verb, scaffold, boilerplate, etc. See the implementation table for details.
var config = require('template-config');
var app = require('template');
// add a `config` method to `app`
app.mixin('config', config);
// the following config will automatically create the
// specified template collections, and load files from
// the provided directories based on the glob patterns
app.config({
base: 'fixtures/templates',
renameKey: function (key) {
return path.basename(key, path.extname(key));
},
templates: {
pages: {
base: 'pages',
patterns: '*.hbs',
options: {},
},
posts: {
base: 'posts',
patterns: '*.md',
options: {},
},
layouts: {
base: 'layouts',
patterns: '*.hbs',
options: { viewType: 'layout' },
},
includes: {
base: 'includes',
patterns: '*.hbs',
options: { viewType: 'partial' },
}
}
});
When the application is checked, it's stable and ready to use with this library:
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on August 19, 2015.
FAQs
Adds declarative configuration functionality to Template.
The npm package template-config receives a total of 9 weekly downloads. As such, template-config popularity was classified as not popular.
We found that template-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.