[Templates] Include templates using text plugin

Resolves #673
This commit is contained in:
Victor Woeltjen
2016-02-26 13:07:50 -08:00
parent 60efdb4ad3
commit bf1fa0ac4c
22 changed files with 292 additions and 100 deletions

View File

@@ -27,6 +27,9 @@ define([
"./src/controllers/ClickAwayController",
"./src/services/GenericSearchProvider",
"./src/services/SearchAggregator",
"text!./res/templates/search-item.html",
"text!./res/templates/search.html",
"text!./res/templates/search-menu.html",
'legacyRegistry'
], function (
SearchController,
@@ -34,6 +37,9 @@ define([
ClickAwayController,
GenericSearchProvider,
SearchAggregator,
searchItemTemplate,
searchTemplate,
searchMenuTemplate,
legacyRegistry
) {
"use strict";
@@ -80,17 +86,17 @@ define([
"representations": [
{
"key": "search-item",
"templateUrl": "templates/search-item.html"
"template": searchItemTemplate
}
],
"templates": [
{
"key": "search",
"templateUrl": "templates/search.html"
"template": searchTemplate
},
{
"key": "search-menu",
"templateUrl": "templates/search-menu.html"
"template": searchMenuTemplate
}
],
"components": [