Socket
Socket
Sign inDemoInstall

base-loader

Package Overview
Dependencies
70
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    base-loader

Base loader for Template-based applications.


Version published
Weekly downloads
53
decreased by-20.9%
Maintainers
1
Install size
711 kB
Created
Weekly downloads
 

Readme

Source

base-loader NPM version

Base loader for Template-based applications.

Install with npm

npm i base-loader --save

Usage

var loader = require('base-loader');

var App = require('template');
var app = new App();
app.loader('base', [loader]);

Now you can use the loader to load templates for custom template types.

// create the custom type, and assign the loader
app.create('post', 'posts', ['base']);

// load some templates!
app.posts('*.md');

template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… 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 (c) 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on May 01, 2015.

Keywords

FAQs

Last updated on 01 May 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc