Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

This package has been deprecated

Author message:

Bug in swig prevents chained functions to work. Use static2000-nunjucks instead

static2000-swig

0.1.0 • Public • Published

static2000-swig

Swig adapter for Static2000.

Installation

Via npm:

$ npm install static2000-swig

Usage

To use swig templates with static2000, install this adapter and specify it as the templateAdapter in static2000. Create templates and content as .html files.

From the command line:

$ static2000 --templateAdapter static2000-swig

Or with the API:

var static2000 = require('static2000');
 
static2000({ templateAdapter: 'static2000-swig' });

Globals

This adapter imports [templates folder]/includes/globals.html in all files as globals so macros defined there are available both in the body of content and in templates:

{{ globals.myMacro() }}

install

npm i static2000-swig

Downloadsweekly downloads

2

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar