2.1.0 • Published 9 years ago

catberry-jade v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.7

10 years ago

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago