0.2.2 • Published 9 years ago

bauer-shared-web-templates v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago