
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
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.
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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.