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

examples: add a template example, update the regex examples (#8829)

This commit is contained in:
kristof de spiegeleer
2021-02-19 11:39:15 +01:00
committed by GitHub
parent 6e262b5d84
commit 3f3bec45fa
12 changed files with 654 additions and 52 deletions

View File

@@ -0,0 +1,14 @@
# example how to work with templates
- templates support
- if
- for loops
- even nesting of for loops
- syntax checking
- embed the template into the binary
Its a very cool way how to do also do e.g. system administration, fill in
config files, etc...
The example there is also a good demonstration of how to use json on a more
complex object and read/write to file.