diff --git a/README.md b/README.md
index e3bec947..27df561d 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,6 @@ D3 Node Editor [![Build Status](https://travis-ci.org/Ni55aN/D3-Node-editor.svg?
```
-Put view.html in the folder with your page
Create needed sockets
```js
diff --git a/package.json b/package.json
index 87d33f6e..24a58ea6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "d3-node-editor",
- "version": "0.3.0",
+ "version": "0.3.1",
"description": " JavaScript library",
"main": "build/node-editor.js",
"scripts": {
diff --git a/src/editor.js b/src/editor.js
index f99c7b8c..d7196296 100644
--- a/src/editor.js
+++ b/src/editor.js
@@ -5,7 +5,7 @@ import {Socket} from './socket';
export class NodeEditor {
- constructor(id, builders, event) {
+ constructor(id, template, builders, event) {
this.event = event;
this.active = null;
@@ -51,7 +51,7 @@ export class NodeEditor {
this.declareDirectives();
- d3.text('view.html', (error, text) => {
+ d3.text(template, (error, text) => {
if (error) throw error;
this.view.html(text);
alight.applyBindings(this.$scope, this.view.node());