Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created February 11, 2016 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/718414d1f8b50cc03b09 to your computer and use it in GitHub Desktop.
Save chuck0523/718414d1f8b50cc03b09 to your computer and use it in GitHub Desktop.
module.exports = (function() {
'use strict';
const Nodal = require('nodal');
class IndexController extends Nodal.Controller {
get() {
this.render(
Nodal.Template.generate('index.html').render(
this.params,
{
name: 'My Nodal Application'
}
)
);
}
}
return IndexController;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment