diff --git a/grunt-scaffold/root/src/main.js b/grunt-scaffold/root/src/main.js index ae90afc..e543fbb 100644 --- a/grunt-scaffold/root/src/main.js +++ b/grunt-scaffold/root/src/main.js @@ -4,13 +4,11 @@ define([ 'css!compiled/css/main.css', 'rv!templates/index.html' ], function(require, strings, css, template ) { - return { - Controller: function(opts) { - this.view = new Ractive({ - el: opts.config.el, - template: template, - data: { message: strings.hello + " World" } - }); - } + return function(opts) { + var view = new Ractive({ + el: opts.el, + template: template, + data: { message: strings.hello + " World" } + }); }; });