From 7213975239c99002d962350dbee5ae582db7c090 Mon Sep 17 00:00:00 2001 From: nkiru onwuneme Date: Tue, 12 Dec 2017 15:33:43 -0800 Subject: [PATCH 01/23] add quote view --- src/views/quote_view.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/views/quote_view.js diff --git a/src/views/quote_view.js b/src/views/quote_view.js new file mode 100644 index 0000000..4140b73 --- /dev/null +++ b/src/views/quote_view.js @@ -0,0 +1,15 @@ +import Backbone from 'backbone'; +import Quote from '../models/quote'; + +const QuoteView = Backbone.View.extend({ + initialize(params) { + this.template = params.template; + }, + render() { + const compiledTemplate = this.template(this.model.toJSON()); + this.$el.html(compiledTemplate); + return this; + }, +}); + +export default QuoteView; From f9b38866f2f0f98092b44078e561e5bb5bc125e2 Mon Sep 17 00:00:00 2001 From: nkiru onwuneme Date: Tue, 12 Dec 2017 15:57:12 -0800 Subject: [PATCH 02/23] add li element and quote class --- dist/index.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dist/index.html b/dist/index.html index 8a046fa..1312378 100644 --- a/dist/index.html +++ b/dist/index.html @@ -85,16 +85,16 @@

Order Entry Form