Skip to content

Commit

Permalink
Rename options.jstransformer to options.engine
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Jul 6, 2015
1 parent 05cd4b4 commit 86e06b4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.0.0: 2015-07-06

- Renamed option to `engine`

## v0.1.0: 2015-06-01

- Added `renderFile()`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This example uses JSTransformers renders [Handlebars](http://handlebarsjs.com) t
var foo = require('jstransformer')(require('jstransformer-jstransformer'))

var options = {
jstransformer: 'handlebars'
engine: 'handlebars'
};
var locals = {
title: 'Hello World!'
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ var getTransform = function (options) {
if (typeof options == "string" || options instanceof String) {
return options;
}
else if (typeof options == "object" && options.jstransformer) {
return options.jstransformer;
else if (typeof options == "object" && options.engine) {
return options.engine;
}
else {
throw new Error("options.jstransformer not found.");
throw new Error("options.engine not found.");
}
};

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jstransformer-jstransformer",
"version": "0.1.0",
"version": "1.0.0",
"description": "JSTransformer support for JSTransformer.",
"keywords": [
"jstransformer"
Expand All @@ -9,10 +9,10 @@
"index.js"
],
"dependencies": {
"jstransformer": "0.0.2"
"jstransformer": "^0.0.2"
},
"devDependencies": {
"jstransformer-octet": "0.0.1",
"jstransformer-octet": "^0.0.1",
"test-jstransformer": "^1.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test/options.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"jstransformer": "octet"
"engine": "octet"
}

0 comments on commit 86e06b4

Please sign in to comment.