From deb767d9fcb662fcc5cd89ca892c847dbaab34f0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 17 May 2021 00:12:01 +0200 Subject: [PATCH] Update 03_Requirements.md --- docs/en/02_Developer_Guides/01_Templates/03_Requirements.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/02_Developer_Guides/01_Templates/03_Requirements.md b/docs/en/02_Developer_Guides/01_Templates/03_Requirements.md index 965f521ac..fa26426e9 100644 --- a/docs/en/02_Developer_Guides/01_Templates/03_Requirements.md +++ b/docs/en/02_Developer_Guides/01_Templates/03_Requirements.md @@ -158,7 +158,7 @@ Requirements::javascript('/javascript/dist/bundle.js', ['provides '/javascript/src/main.js', '/javascript/src/functions.js' ]]); -Requirements::javascript('/javascript/jquery.js'); // Will will skip this file +Requirements::javascript('/javascript/jquery.js'); // Will skip this file ``` You can also use the second argument to add the 'async' and/or 'defer attributes to the script tag generated: @@ -175,7 +175,7 @@ Requirements::javascript( ### Custom Inline CSS or Javascript -You can also quote custom script directly. This may seem a bit ugly, but is useful when you need to transfer some kind +You can also quote custom scripts directly. This may seem a bit ugly, but is useful when you need to transfer some kind of 'configuration' from the database in a raw format. You'll need to use the `heredoc` syntax to quote JS and CSS, this is generally speaking the best way to do these things - it clearly marks the copy as belonging to a different language.