This commit is contained in:
Bernhard Posselt
2014-09-09 16:30:46 +02:00
parent 3db28dd239
commit d2b2743b0f
2 changed files with 13 additions and 0 deletions

View File

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

View File

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