[Pkg-owncloud-commits] [owncloud-doc] 82/227: easier style tag and html imports

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:20:36 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 5bddf7bbd9939d966316cc3f92af3ce9ddd79655
Author: Bernhard Posselt <Raydiation at users.noreply.github.com>
Date:   Mon Sep 8 21:38:27 2014 +0200

    easier style tag and html imports
---
 developer_manual/app/css.rst | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/developer_manual/app/css.rst b/developer_manual/app/css.rst
index f06fe56..5343af5 100644
--- a/developer_manual/app/css.rst
+++ b/developer_manual/app/css.rst
@@ -9,8 +9,15 @@ The CSS files reside in the **css/** folder and should be included in the templa
 .. code-block:: php
 
   <?php
-  \OCP\Util::addStyle('myapp', 'style');  // adds js/style.css
+  style('myapp', 'style');  // adds js/style.css
+  
+Web Components go into the **component/** folder and can be imported like this:
 
+.. code-block:: php
+
+  <?php
+  component('myapp', 'tabs');  // adds component/tabs.html
+  
 Standard layout
 ===============
 To use the commonly used layout consisting of sidebar navigation and content the **app-navigation** and **app-content** ids can be used:

-- 
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