[Pkg-owncloud-commits] [owncloud-doc] 86/227: add docs for https://github.com/owncloud/core/pull/10964
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:20:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud-doc.
commit d2b2743b0fe00eec7399c2745ccf2c5be440c009
Author: Bernhard Posselt <dev at bernhard-posselt.com>
Date: Tue Sep 9 16:30:46 2014 +0200
add docs for https://github.com/owncloud/core/pull/10964
---
developer_manual/app/css.rst | 9 +++++++++
developer_manual/app/js.rst | 4 ++++
2 files changed, 13 insertions(+)
diff --git a/developer_manual/app/css.rst b/developer_manual/app/css.rst
index 729c915..fe7d9f5 100644
--- a/developer_manual/app/css.rst
+++ b/developer_manual/app/css.rst
@@ -9,15 +9,24 @@ The CSS files reside in the **css/** folder and should be included in the templa
.. code-block:: php
<?php
+ // include one file
style('myapp', 'style'); // adds js/style.css
+
+ // include multiple files for the same app
+ style('myapp', array('style', 'navigation')); // adds js/style.css, js/navigation.css
Web Components go into the **component/** folder and can be imported like this:
.. code-block:: php
<?php
+ // include one file
component('myapp', 'tabs'); // adds component/tabs.html
+ // include multiple files for the same app
+ component('myapp', array('tabs', 'forms')); // adds component/tabs.html, component/forms.html
+
+
.. note:: Keep in mind that Web Components are still very new and you `might need to add polyfills using Polymer <http://www.polymer-project.org/resources/compatibility.html>`_
Standard layout
diff --git a/developer_manual/app/js.rst b/developer_manual/app/js.rst
index ea96565..63794b9 100644
--- a/developer_manual/app/js.rst
+++ b/developer_manual/app/js.rst
@@ -9,8 +9,12 @@ The JavaScript files reside in the **js/** folder and should be included in the
.. code-block:: php
<?php
+ // add one file
script('myapp', 'script'); // adds js/script.js
+ // add multiple files in the same app
+ script('myapp', array('script', 'navigation')); // adds js/script.js js/navigation.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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git
More information about the Pkg-owncloud-commits
mailing list