mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
cleaned up template helpers
This commit is contained in:
parent
d7fbfec01e
commit
8841e43c25
17 changed files with 78 additions and 88 deletions
18
UI/Handlebars/debug.js
Normal file
18
UI/Handlebars/debug.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
define({
|
||||
register: function (Handlebars) {
|
||||
Handlebars.registerHelper("debug", function (optionalValue) {
|
||||
|
||||
console.group('Handlebar context');
|
||||
|
||||
console.log(this);
|
||||
if (optionalValue) {
|
||||
|
||||
console.group('optional values');
|
||||
console.log('optinal values');
|
||||
console.groupEnd();
|
||||
}
|
||||
console.groupEnd();
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue