From ea4981df902dc33b10de56dbbf7349caef29a2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hitalo=20de=20Jesus=20do=20Ros=C3=A1rio=20Souza?= <63821277+enghitalo@users.noreply.github.com> Date: Wed, 6 Jan 2021 15:05:32 -0300 Subject: [PATCH] vweb.tmpl: update README.md with @js directive (#7791) --- vlib/vweb/tmpl/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vlib/vweb/tmpl/README.md b/vlib/vweb/tmpl/README.md index 48d6c2544f..6284593917 100644 --- a/vlib/vweb/tmpl/README.md +++ b/vlib/vweb/tmpl/README.md @@ -108,6 +108,19 @@ Project root ``` > Note that there shouldn't be a file suffix, it is automatically appended and only allows `html` files. + + +## js +The js directive consists of two parts, the `@js` tag and `''` string, +where you can insert your src +``` +@js '' +``` + +### Example +```html +@js 'myscripts.js' +``` # Variables All variables which are declared before can be used through the `@{my_var}` syntax.