Permalink
Browse files

a couple more changes to make the template overridable at compile time

  • Loading branch information...
1 parent 9205320 commit 69268018a4d8202b185371b538aba95bf5884214 @dmachi committed Sep 20, 2011
Showing with 2 additions and 10 deletions.
  1. +2 −10 lib/templify.js
View
12 lib/templify.js
@@ -9,16 +9,8 @@ exports.TemplateEngine=function(options){
options.rules = Rules(options);
var engine = {
compile: function(id, extra){
- var opts = {}
- for (var i in options){
- opts[i]=options[i];
- }
- if (extra && typeof extra=='object'){
- for (var i in extra){
- opts[i]=extra[i]
- }
- }
- var template = Template(resolver(id), options);
+ console.log("Setup Template: ", id, extra, resolver);
+ var template = Template(resolver(id,false,extra), options);
return template;
}
}

0 comments on commit 6926801

Please sign in to comment.