bauer-shared-web-templates v0.2.2
Bauer shared web components
Shared bauer shared templates npm module
Getting Started
npm install
compile templates
npm start
templates can be found in templates/src directory
When modifying templates they are automatically pre-compiled to templates/dist
This npm module is meant to be included in a dadi web front end instance.
To include a template create a helper for it in the FE project:
# sampleHelper.js
var dust = require('dustjs-linkedin')
var templatesShare = require('bauer-shared-templates').Templates(dust)
/**
* Shared template component helper
*/
dust.helpers.templateComponent = function (chunk, context, bodies, params) {
var template = templatesShare.get('test', {'name': 'Brian'})
return chunk.map(function (chunk) {
template.then(function (res) {
return chunk.end(res)
})
})
}
Installing
npm install
Versioning
We use SemVer for versioning.
Authors
- Brian Gouws - Initial work - hydroes
License
This project is licensed under the MIT License - see the LICENSE.md file for details
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago