1.2.1 • Published 7 years ago

metalsmith-swig v1.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

metalsmith-swig

Compiles twig files using twig (https://github.com/justjohn/twig.js)

Install

  npm install metalsmith-swig

Usage

var metalsmith = require( 'metalsmith' ),
	metal_twig = require( 'metalsmith-swig' );

metalsmith( __dirname )
	.source( './src' )
	.destination( './dist' )
	.use( metal_twig() )
	.build( function ( err ) {
		if ( err ) {
			throw err;
		}
	} );

Options:

  • locales: Defines lang keyed objects with strings to be used in twig with trans(key) (See /test/src/05-trans/05-trans.html.twig)
  • engine: (default: twig) Set the engine (twig)

License

MIT

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago