vweb.tmpl: update README.md with @js directive (#7791)

pull/7926/head
Hitalo de Jesus do Rosário Souza 2021-01-06 15:05:32 -03:00 committed by GitHub
parent a8e4d1df40
commit ea4981df90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -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 `'<path>'` string,
where you can insert your src
```
@js '<url>'
```
### Example
```html
@js 'myscripts.js'
```
# Variables
All variables which are declared before can be used through the `@{my_var}` syntax.