add vendorScript and vendorStyle usage

* see owncloud/core#11916
This commit is contained in:
Morris Jobke 2014-11-03 14:50:51 +01:00
parent 057939fddb
commit 06dda72e06
2 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,10 @@ The CSS files reside in the **css/** folder and should be included in the templa
// include multiple files for the same app
style('myapp', array('style', 'navigation')); // adds js/style.css, js/navigation.css
// include vendor file (also allows vendor syntax)
vendorStyle('myapp', 'style'); // adds vendor/style.css
Web Components go into the **component/** folder and can be imported like this:
.. code-block:: php

View File

@ -15,6 +15,9 @@ The JavaScript files reside in the **js/** folder and should be included in the
// add multiple files in the same app
script('myapp', array('script', 'navigation')); // adds js/script.js js/navigation.js
// add vendor files (also allows the array syntax)
vendorScript('myapp', 'script'); // adds vendor/script.js
The recommended JavaScript framework to use is `AngularJS <https://angularjs.org/#>`_. A nice tutorial screencast collection can be found on `Egghead.io <https://egghead.io/technologies/angularjs>`_
Sending the CSRF token