Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

helpers don't do anything

  • Loading branch information...
commit 0bccb49dd8f6726170e4a23b78c96fe04f207f9f 1 parent bafbb4b
@sconover sconover authored
Showing with 2 additions and 13 deletions.
  1. +0 −1  specs/jaml_spec.js
  2. +2 −12 src/Jaml.js
View
1  specs/jaml_spec.js
@@ -4,7 +4,6 @@ describe("Jaml (top-level)", function() {
beforeEach(function(){
Jaml.templates = {}
- Jaml.helpers = {}
})
describe("you can register a template and then use it to render", function() {
View
14 src/Jaml.js
@@ -8,8 +8,7 @@
Jaml = function() {
return {
templates: {},
- helpers : {},
-
+
/**
* Registers a template by name
* @param {String} name The name of the template
@@ -29,15 +28,6 @@ Jaml = function() {
renderer = new Jaml.Template(template);
return renderer.render(data);
- },
-
- /**
- * Registers a helper function
- * @param {String} name The name of the helper
- * @param {Function} helperFn The helper function
- */
- registerHelper: function(name, helperFn) {
- this.helpers[name] = helperFn;
- }
+ }
};
}();
Please sign in to comment.
Something went wrong with that request. Please try again.