Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 69268018a4d8202b185371b538aba95bf5884214 1 parent 9205320
Dustin Machi authored September 19, 2011

Showing 1 changed file with 2 additions and 10 deletions. Show diff stats Hide diff stats

  1. 12  lib/templify.js
12  lib/templify.js
@@ -9,16 +9,8 @@ exports.TemplateEngine=function(options){
9 9
 	options.rules = Rules(options);
10 10
 	var engine = {
11 11
 		compile: function(id, extra){
12  
-			var opts = {}
13  
-			for (var i in options){
14  
-				opts[i]=options[i];
15  
-			}
16  
-			if (extra && typeof extra=='object'){
17  
-				for (var i in extra){
18  
-					opts[i]=extra[i]	
19  
-				}
20  
-			}
21  
-			var template = Template(resolver(id), options);
  12
+			console.log("Setup Template: ", id, extra, resolver);
  13
+			var template = Template(resolver(id,false,extra), options);
22 14
 			return template;
23 15
 		}
24 16
 	}		

0 notes on commit 6926801

Please sign in to comment.
Something went wrong with that request. Please try again.