diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/index.php b/templates/index.php index 7862aab77..e732dac59 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,4 +1,6 @@ <?php +use OCA\News\Plugin\Client\Plugin; + script('news', [ 'vendor/es6-shim/es6-shim.min', 'vendor/angular/angular.min', @@ -35,6 +37,14 @@ if (defined('DEBUG') && DEBUG === true) { script('news', 'build/app.min'); } + +// load plugin scripts and styles +foreach (Plugin::getStyles() as $appName => $fileName) { + style($appName, $fileName); +} +foreach (Plugin::getScripts() as $appName => $fileName) { + script($appName, $fileName); +} ?> <div id="app" ng-app="News" ng-cloak ng-strict-di |