Permalink
Browse files

comment out some logging

  • Loading branch information...
1 parent 6926801 commit b5ee18b6901a8208e7ca8db38267e311e7b51418 @dmachi committed Oct 7, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 lib/resolver.js
  2. +2 −2 lib/rules.js
  3. +1 −1 lib/templify.js
View
@@ -12,7 +12,7 @@ var when = require("promised-io/promise").when;
exports.Resolver = function(store,options) {
var defaultTemplate = require("commonjs-utils/settings").defaultTemplate || "default"
return function(id,exact){
- console.log("Resolve Template for ID: " + id);
+ //console.log("Resolve Template for ID: " + id);
var template,
parts=id.split("/");
while(parts.length>0){
@@ -21,7 +21,7 @@ exports.Resolver = function(store,options) {
//console.log ("tid: ", tid);
template = store.get(tid);
if (template){
- console.log("Found Template: " + tid);
+ //console.log("Found Template: " + tid);
return template;
}
if (exact){return}
View
@@ -123,7 +123,7 @@ exports.Rules = function(options){
handler: function(tree, content, caller){
var variable = tree.arguments.variable;
var args= tree.arguments.args;
- return 'console.log("data:",$data);$data["'+variable+'"]=' + args + ";";
+ return '$data["'+variable+'"]=' + args + ";";
}
},
@@ -210,7 +210,7 @@ exports.Rules = function(options){
type: 'block',
noTextBefore: false,
handler: function(tree, content, caller) {
- console.log("else handler: ", content);
+ //console.log("else handler: ", content);
return [
'else {',
content,
View
@@ -9,7 +9,7 @@ exports.TemplateEngine=function(options){
options.rules = Rules(options);
var engine = {
compile: function(id, extra){
- console.log("Setup Template: ", id, extra, resolver);
+ //console.log("Setup Template: ", id, extra, resolver);
var template = Template(resolver(id,false,extra), options);
return template;
}

0 comments on commit b5ee18b

Please sign in to comment.