diff options
author | Egil Moeller <egil.moller@freecode.no> | 2010-03-27 16:23:10 +0100 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2010-03-27 16:23:10 +0100 |
commit | 027acf76860332811603bd8130c552d1d3ac0b19 (patch) | |
tree | 528dce188903f97a17bd8fb8c0f19f05bc71ee5f | |
parent | c7896640f597a07294edfdee8f53fe329dfa4fcb (diff) | |
download | etherpad-027acf76860332811603bd8130c552d1d3ac0b19.tar.gz etherpad-027acf76860332811603bd8130c552d1d3ac0b19.tar.xz etherpad-027acf76860332811603bd8130c552d1d3ac0b19.zip |
Made it possible to callHook from templates
Diffstat (limited to '')
-rw-r--r-- | etherpad/src/etherpad/utils.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etherpad/src/etherpad/utils.js b/etherpad/src/etherpad/utils.js index e60c08a..398090c 100644 --- a/etherpad/src/etherpad/utils.js +++ b/etherpad/src/etherpad/utils.js @@ -67,6 +67,7 @@ function findTemplate(filename, plugin) { function renderTemplateAsString(filename, data, plugin) { data = data || {}; data.helpers = helpers; // global helpers + data.plugins = plugins; // Access callHook and the like... var f = findTemplate(filename, plugin); //"/templates/"+filename; if (! appjet.scopeCache.ejs) { |