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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

View File

@ -6,7 +6,6 @@ pub const (
is_used = 1
)
// https://github.com/vlang/rfcs/blob/master/embedding_resources.md
// EmbedFileData encapsulates functionality for the `$embed_file()` compile time call.
pub struct EmbedFileData {
apath string