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:
parent
914007fd83
commit
92be90300c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user