From 8003f1dc9e7ab23493b26eefbfd6cda314268264 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 11 May 2017 02:58:40 +0200 Subject: init --- public/assets/js/lib/view/HomeView.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 public/assets/js/lib/view/HomeView.js (limited to 'public/assets/js/lib/view/HomeView.js') diff --git a/public/assets/js/lib/view/HomeView.js b/public/assets/js/lib/view/HomeView.js new file mode 100644 index 0000000..3eac71e --- /dev/null +++ b/public/assets/js/lib/view/HomeView.js @@ -0,0 +1,27 @@ +var HomeView = View.extend({ + + el: "#home", + + // template: liquid($('#tmpl-home').html()), + + events: { + }, + + initialize: function(options){ + options = options || {} + var data = this.data = options.data + }, + + render: function(){ + if (this.rendered) return + this.rendered = true + }, + + show: function(){ + this.render(this.data) + }, + + hide: function(){ + }, + +}) -- cgit v1.2.3-70-g09d2