diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-03-11 12:59:55 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-03-11 23:36:06 +0100 |
| commit | 5ac7eb3860ebd3247f6486c227e816894cb8fd91 (patch) | |
| tree | a29a868c681c7de39f15f2d9d3f031db1861b90a /benches | |
| parent | 5ce2a006b6d45d29be15e4562ae3ab4fc1b8e97c (diff) | |
Rename template to content
Diffstat (limited to 'benches')
| -rw-r--r-- | benches/bench.typ | 10 | ||||
| -rw-r--r-- | benches/oneshot.rs | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/benches/bench.typ b/benches/bench.typ index 75c97d02..4925db4d 100644 --- a/benches/bench.typ +++ b/benches/bench.typ @@ -4,15 +4,15 @@ // There are variables and they can take normal values like strings, ... #let city = "Berlin" -// ... but also "template" values. While these contain markup, +// ... but also "content" values. While these contain markup, // they are also values and can be summed, stored in arrays etc. // There are also more standard control flow structures, like #if and #for. #let university = [*Technische Universität {city}*] #let faculty = [*Fakultät II, Institut for Mathematik*] // The `box` function just places content into a rectangular container. When -// the only argument to a function is a template, the parentheses can be omitted -// (i.e. `f[a]` is the same as `f([a])`). +// the only argument to a function is a content block, the parentheses can be +// omitted (i.e. `f[a]` is the same as `f([a])`). #box[ // Backslash adds a forced line break. #university \ @@ -26,8 +26,8 @@ // Adds vertical spacing. #v(6mm) -// If the last argument to a function is a template, we can also place it behind -// the parentheses. +// If the last argument to a function is a content block, we can also place it +// behind the parentheses. #align(center)[ // Markdown-like syntax for headings. ==== 3. Übungsblatt Computerorientierte Mathematik II #v(4mm) diff --git a/benches/oneshot.rs b/benches/oneshot.rs index 9bce185c..ddd68970 100644 --- a/benches/oneshot.rs +++ b/benches/oneshot.rs @@ -80,7 +80,7 @@ fn bench_eval(iai: &mut Iai) { fn bench_layout(iai: &mut Iai) { let (mut ctx, id) = context(); let module = ctx.evaluate(id).unwrap(); - iai.run(|| module.template.layout(&mut ctx)); + iai.run(|| module.content.layout(&mut ctx)); } fn bench_render(iai: &mut Iai) { |
