JSPM

base-loader

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41
  • Score
    100M100P100Q82931F
  • License

Base loader for Template-based applications.

Package Exports

  • base-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.