0.2.2 • Published 8 years ago

bauer-shared-web-templates v0.2.2

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

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago