Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from hegdeashwin/master
Browse files Browse the repository at this point in the history
[tech] add support to use the existing dust context
  • Loading branch information
grawk authored Dec 30, 2017
2 parents 2e3839a + 4dfe41a commit 4ac703a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
festucam
==========
# festucam

Repository for contributed helper and filter extensions to dust
Repository for contributed helper and filter extensions to dust.

Forked from Rich Ragan's [dust-motes](https://github.com/rragan/dust-motes).

## Helpers document references

|Category|Helper|
|:---|:---|
|Data|[pulvus-provide](master/src/helpers/data/provide)|
|HTML|[dustmotes-layout](master/src/helpers/html/layout)|
|Strings|[substr](master/src/helpers/strings/substr)|
|Miscellaneous|[extend](master/src/helpers/miscellaneous/extend)|
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "festucam",
"description": "Collection of dust helpers/filters.",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/krakenjs/festucam",
"author": {
"name": "rragan",
"url": "https://github.com/rragan"
},
"contributors" : ["Matt Edelman <[email protected]>", "Cédric Connes <[email protected]>"],
"contributors": [
"Matt Edelman <[email protected]>",
"Cédric Connes <[email protected]>"
],
"repository": {
"type": "git",
"url": "git://github.com/krakenjs/festucam.git"
Expand All @@ -22,8 +25,7 @@
"scripts": {
"test": "grunt test"
},
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"dustjs-linkedin": "~2.6.0",
"dustjs-helpers": "~1.1.1",
Expand Down
5 changes: 4 additions & 1 deletion src/helpers/data/provide/provide.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
(function(root, factory) {
if (typeof define === 'function' && define.amd && define.amd.dust === true) {
define(['dust.core'], factory);
} else if (typeof exports === 'object') {
} else if (typeof module === 'object') {
module.exports = factory(require('dustjs-linkedin'));
module.exports.registerWith = factory;
} else {
factory(root.dust);
}
Expand Down Expand Up @@ -69,4 +70,6 @@
}
});
}

return dust;
}));

0 comments on commit 4ac703a

Please sign in to comment.