mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
handlebars and templates are loaded with require.js
This commit is contained in:
parent
2407e33ea2
commit
7c483e2db9
8 changed files with 13 additions and 20 deletions
|
@ -1,11 +1,11 @@
|
|||
"use strict";
|
||||
|
||||
define(['app', 'marionette'], function (App, Marionette) {
|
||||
define(['app', 'marionette', 'handlebars', 'templates'], function (App, Marionette, HandleBars, Templates) {
|
||||
Marionette.TemplateCache.get = function (templateId) {
|
||||
|
||||
var templateKey = templateId.toLowerCase();
|
||||
|
||||
var templateFunction = window.Templates[templateKey];
|
||||
var templateFunction = Templates[templateKey];
|
||||
|
||||
if (!templateFunction) {
|
||||
throw 'couldn\'t find pre-compiled template ' + templateKey;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue