Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added functionality

  • Loading branch information...
commit f1fb788076dd474b0837e42550d90ebfff7532f2 1 parent 39f3ebe
Shimon Doodkin authored
Showing with 2 additions and 2 deletions.
  1. +2 −1  README.md
  2. +0 −1  doubletemplate.js
3  README.md
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});
1  doubletemplate.js
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});
Please sign in to comment.
Something went wrong with that request. Please try again.