diff options
author | Robin Appelman <robin@icewind.nl> | 2019-04-05 09:23:43 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-04-08 09:16:07 +0200 |
commit | 3cce485fc8aad0ac75cf7da69ac32c96d6018fd8 (patch) | |
tree | 4d9fbc4beaf0ce785df406091b0da5914b9f20a0 /apps/files_versions/src/versionstabview.js | |
parent | acba430246bc8815c368ef19e2c169769ca897ea (diff) | |
download | nextcloud-server-3cce485fc8aad0ac75cf7da69ac32c96d6018fd8.tar.gz nextcloud-server-3cce485fc8aad0ac75cf7da69ac32c96d6018fd8.zip |
use webpack to compile handlebars for files_versions
This removes the need to manually compile the templates every time they are changed
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_versions/src/versionstabview.js')
-rw-r--r-- | apps/files_versions/src/versionstabview.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_versions/src/versionstabview.js b/apps/files_versions/src/versionstabview.js index 12b493beec0..464ae549218 100644 --- a/apps/files_versions/src/versionstabview.js +++ b/apps/files_versions/src/versionstabview.js @@ -8,6 +8,9 @@ * */ +import ItemTemplate from './templates/item.handlebars'; +import Template from './templates/template.handlebars'; + (function() { /** * @memberof OCA.Versions @@ -128,11 +131,11 @@ }, template: function(data) { - return OCA.Versions.Templates['template'](data); + return Template(data); }, itemTemplate: function(data) { - return OCA.Versions.Templates['item'](data); + return ItemTemplate(data); }, setFileInfo: function(fileInfo) { |