2.1.0 • Published 8 years ago

catberry-jade v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

Catberry Jade Adapter

Gitter

It is an adapter for Jade template engine that makes possible to use it from Catberry application.

Installation

npm install catberry-jade --save

Usage

You can use the adapter in ./browser.js, ./server.js or ./build.js as following:

const jade = require('catberry-jade');
const cat = catberry.create(config);
jade.register(cat.locator);

In fact, Catberry CLI does it for you.

Global variables

You can add global variables to Catberry application's config, for example:

{
	template: {
		globals: {
			globalVariableKey: 'globalVariableValue'
		},
		someOtherParameter: 'someOtherValue'
	},
	someOtherParameter: 'someOtherValue'
}

or at runtime, for example:

  const templateProvider = cat.locator.resolve('templateProvider');
  templateProvider.globals = templateProvider.globals || {};
  templateProvider.globals.globalVariableKey = 'globalVariableValue';

Contributing

There are a lot of ways to contribute:

Denis Rechkunov denis.rechkunov@gmail.com

2.1.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago