mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Update templates.rst
This commit is contained in:
parent
2f14ce03e3
commit
339928f325
@ -54,8 +54,8 @@ To include CSS or JavaScript use the **addStyle** and **addScript** functions:
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
\OCP\Util::addScript('myapp', 'script'); // add js/script.js
|
||||
\OCP\Util::addStyle('myapp', 'style'); // add css/style.css
|
||||
script('myapp', 'script'); // add js/script.js
|
||||
style('myapp', 'style'); // add css/style.css
|
||||
|
||||
|
||||
Including images
|
||||
|
||||
Loading…
Reference in New Issue
Block a user