Skip to content

Commit

Permalink
Update tut10.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby authored Mar 27, 2024
1 parent 59e76a5 commit d7c7ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial/tut10.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ And some plus sides that f-strings don't have:
- Hancho templates that refer to ```list```s will get flattened out and joined with spaces
- Expanding ```"{foo}"``` with ```foo = ["Hello", "Hancho", "World"]``` will produce ```"Hello Hancho World"```
- Expanding ```"{foo}"``` with ```foo = [[["nesting"]], ["levels"], "don't", [[[[[["matter"]]]]]]]``` will produce ```"nesting levels don't matter"```
- Hancho templates that refer to ```Task```s will be replaced with that task's ```build_files```.
- In the link task, ```source_files = [main_o, util_o]``` becomes ```["build/tut10/src/main.o", "build/tut10/src/util.o"]```
- Hancho templates that refer to ```Task```s will be replaced with that task's ```build_files``` converted to absolute paths.
- In the link task, ```source_files = [main_o, util_o]``` becomes ```["/home/user/hancho/tutorial/build/tut10/src/main.o", "/home/user/hancho/tutorial/build/tut10/src/util.o"]```
- Templates can refer to other templates
- ```command``` contains ```{build_files}```, ```build_files``` contains ```{build_dir}```, and this all works fine.
- You can nest templates up to ```MAX_EXPAND_DEPTH = 20``` levels deep
Expand Down

0 comments on commit d7c7ac0

Please sign in to comment.