Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

template-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template-config

Adds declarative configuration functionality to Template.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
9
800%
Maintainers
1
Weekly downloads
 
Created
Source

template-config NPM version

Adds declarative configuration functionality to Template.

Install

Install with npm

$ npm i template-config --save

Note that some of

Usage

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' },
    }
  }
});

Implementation table

When the application is checked, it's stable and ready to use with this library:

  • snippet
  • template
  • scaffold
  • boilerplate
  • assemble
  • generate
  • verb
  • assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more
  • boilerplate: Easily create, share and use boilerplates for node.js and web projects.
  • generate: Project generator, for node.js.
  • snippet: CLI and API for easily creating, reusing, sharing and generating snippets of code from the… more
  • scaffold: Generate a project or files from scaffolds.
  • template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more
  • verb: Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… more

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.

This file was generated by verb-cli on August 07, 2015.

Keywords

assemble

FAQs

Package last updated on 10 Aug 2015

Did you know?

Socket

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.

Install

Related posts