Permalink
Browse files

added functionality

  • Loading branch information...
1 parent 39f3ebe commit f1fb788076dd474b0837e42550d90ebfff7532f2 @shimondoodkin committed Jun 26, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −1 README.md
  2. +0 −1 doubletemplate.js
View
@@ -73,7 +73,8 @@ A template that processed twice:
### to include in in nodejs I use:
var te = require('doubletemplate'); //load double teplate module
- var doubletemplate=te.doubletemplate; // export double template function to global
+or
+ var loadtemplate=require('doubletemplate').loadtemplate; // only load template function
### example of using `parsedir` function:
te.parsedir(__dirname+'/templates',{'app':app});
View
@@ -62,7 +62,6 @@ var fs = require('fs'); // lets open files
// to include in in nodejs i use:
// var te = require('doubletemplate'); //load double teplate module
-// var doubletemplate=te.doubletemplate; // export double template function to global
//example of useing parsedir function:
// te.parsedir(__dirname+'/templates',{'app':app});

0 comments on commit f1fb788

Please sign in to comment.