diff --git a/package.json b/package.json index 735c8be..145fce8 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Light weight templates for react -> write html get valid react code", "main": "./src/reactTemplates.js", "bin": { - "rt": "./bin/rt.js" + "rt": "./src/cli.js" }, "scripts": { "test": "node test/src/test.js" diff --git a/src/reactTemplates.js b/src/reactTemplates.js index 4636b82..8e6f104 100644 --- a/src/reactTemplates.js +++ b/src/reactTemplates.js @@ -168,9 +168,9 @@ function addIfNotThere(array, obj) { } function hasNonSimpleChildren(node) { - return _.any(node.children,function (child) { - return child.type === 'tag' && child.attribs[templateProp]; - }); + return _.any(node.children, function (child) { + return child.type === 'tag' && child.attribs[templateProp]; + }); } function convertHtmlToReact(node, context) {