Skip to content

marekhrabe/clean-dust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clean Dust

This module solves problem with globally shared namespace for templates and helpers in dustjs-linkedin by cleaning node.js require cache before each require of dust (so each time you call this module, you will get totally fresh instance of dust). Useful for having more templates (or helpers) with the same name in different places of app.

Usage

npm install clean-dust
var cleanDust = require('clean-dust')

// replace yours
var dust = require('dustjs-linkedin')
// with
var dust = cleanDust()

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published