1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

doc: mention the $embed_file return type, and link to its documentation (#16467)

This commit is contained in:
Přemek Vyhnal
2022-11-18 11:54:17 +01:00
committed by GitHub
parent 914007fd83
commit 92be90300c
2 changed files with 2 additions and 1 deletions

View File

@@ -5320,6 +5320,8 @@ fn main() {
}
```
`$embed_file` returns [EmbedFileData](https://modules.vlang.io/v.embed_file.html#EmbedFileData) which could be used to obtain the file contents as `string` or `[]u8`.
#### `$tmpl` for embedding and parsing V template files
V has a simple template language for text and html templates, and they can easily