Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 1.1.1

  • Loading branch information...
commit dbfd10cc47d84d2194592fb12bd60c1698a1bf13 1 parent ca54c66
@mahdavipanah authored
Showing with 9 additions and 5 deletions.
  1. +1 −1  bin/litepar.js
  2. +6 −2 index.js
  3. +2 −2 package.json
View
2  bin/litepar.js
@@ -3,7 +3,7 @@
var program = require('commander'),
lp = require('../index.js');
require('colors');
-program.version('1.1.0')
+program.version('1.1.1')
.usage('parse <file> <data file> [options]')
.option('-s, --show','Show the parsed string')
.option('-e, --encoding <value>','File reading and writing encoding')
View
8 index.js
@@ -38,8 +38,12 @@ exports.fileParsing = function(options){
}
if(options.encoding === null || options.encoding === undefined || !options.encoding)
options.encoding = 'utf8';
- if(options.return === null || options.return === undefined)
- options.return = true;
+ if(options.return === null || options.return === undefined){
+ if(options.toFile !== undefined && options.toFile!==false){
+ options.return = false;
+ } else
+ options.return = true;
+ }
else
options.return = eval(options.return);
if(!options.data)
View
4 package.json
@@ -1,6 +1,6 @@
{
"name" : "liteParse",
- "version" : "1.1.0" ,
+ "version" : "1.1.1" ,
"description" : "Fast and easy template parser for javascript" ,
"keywords" : [
"template" ,
@@ -27,7 +27,7 @@
"node" : ">= 0.6.14"
},
"main" : "./index",
- "_id": "liteParse@1.1.0",
+ "_id": "liteParse@1.1.1",
"optionalDependencies": {},
"_engineSupported": true,
"_npmVersion": "1.1.18",
Please sign in to comment.
Something went wrong with that request. Please try again.