useful-express-partials
A collection of useful Jade view partials for ExpressJS server: error reporting, analytics, etc.
Last updated 5 years ago by bahmutov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install useful-express-partials 
SYNC missed versions from official npm registry.

useful-express-partials

A collection of useful Jade view partials for ExpressJS server: error reporting, analytics, etc.

npm install --save useful-express-partials

From the main layout Jade file include (assuming this jade file is in views/ subfolder of the project)

doctype html
html
  head
    meta(charset='utf-8')
    title #{title}
    include ../node_modules/useful-express-partials/partials/raygun-crash-reporter
    include ../node_modules/useful-express-partials/partials/heap-analytics
  body
    include partials/header
    .container
      block content

included partials

Look through the partials to see the expected variables that need to be injected when rendering the view. I suggest using render-vars to make sure each rendered views gets some common variables.

raygun-crash-reporter

Flexible client-side crash reporting, including commit and version tags.

heap-analytics

If the API key exists, includes the library code, plus tries to identify the user with email / name.

Small print

Author: Gleb Bahmutov © 2015 @bahmutov glebbahmutov.com glebbahmutov.com/blog

License: MIT - do anything with the code, but don't blame me if it does not work.

Spread the word: tweet, star on github, etc.

Support: if you find any problems with this module, email / tweet / open issue on Github

Current Tags

  • 1.1.1                                ...           latest (5 years ago)

8 Versions

  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 4
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |