summaryrefslogtreecommitdiffstats
path: root/lib/parse/include.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parse/include.js')
-rw-r--r--lib/parse/include.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/parse/include.js b/lib/parse/include.js
deleted file mode 100644
index 483b184..0000000
--- a/lib/parse/include.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var _ = require('lodash');
-
-module.exports = function(markdown, includer) {
- // Memoized include function (to cache lookups)
- var _include = _.memoize(includer);
-
- return markdown.replace(/{{([\s\S]+?)}}/g, function(match, key) {
- // If fails leave content as is
- key = key.trim();
- return _include(key) || match;
- });
-};