client/views: refactor rendering

This commit is contained in:
rr-
2016-04-08 10:35:38 +02:00
parent 7871c69aa3
commit 0ceaa8da42
15 changed files with 147 additions and 97 deletions

View File

@ -9,12 +9,14 @@ class HomeView extends BaseView {
this.template = this.getTemplate('home-template');
}
render(section) {
this.showView(this.template({
render(ctx) {
const target = this.contentHolder;
const source = this.template({
name: config.name,
version: config.meta.version,
buildDate: config.meta.buildDate,
}));
});
this.showView(target, source);
}
}