-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.yaml
91 lines (91 loc) · 3.51 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
syntaxes:
- name: if
template: tests/mext/readme/syntax/if.mext
has_params: True
params: tests/mext/readme/syntax/if.yaml
result: tests/mext/readme/syntax/if.md
result_in_plaintext: False
- name: for
template: tests/mext/readme/syntax/for.mext
has_params: True
params: tests/mext/readme/syntax/for.yaml
result: tests/mext/readme/syntax/for.md
result_in_plaintext: False
- name: trim_newline
template: tests/mext/readme/syntax/trim_newline.mext
has_params: False
result: tests/mext/readme/syntax/trim_newline.md
result_in_plaintext: False
- name: format
template: tests/mext/readme/syntax/format.mext
has_params: True
params: tests/mext/readme/syntax/format.yaml
result: tests/mext/readme/syntax/format.md
result_in_plaintext: False
- name: import
template: tests/mext/readme/syntax/import.mext
has_params: True
params: tests/mext/readme/syntax/import.yaml
result: tests/mext/readme/syntax/import.md
result_in_plaintext: False
- name: include
template: tests/mext/readme/syntax/include.mext
has_params: False
result: tests/mext/readme/syntax/include.md
result_in_plaintext: False
- name: input
template: tests/mext/readme/syntax/input.mext.ignore
has_params: False
result: tests/mext/readme/syntax/input.md
result_in_plaintext: False
- name: option
template: tests/mext/readme/syntax/option.mext
has_params: False
result: tests/mext/readme/syntax/option.md
result_in_plaintext: True
- name: set
template: tests/mext/readme/syntax/set.mext
has_params: True
params: tests/mext/readme/syntax/set.yaml
result: tests/mext/readme/syntax/set.md
result_in_plaintext: False
- name: default
template: tests/mext/readme/syntax/default.mext
has_params: True
params: tests/mext/readme/syntax/default.yaml
result: tests/mext/readme/syntax/default.md
result_in_plaintext: False
- name: count
template: tests/mext/readme/syntax/count.mext
has_params: True
params: tests/mext/readme/syntax/count.yaml
result: tests/mext/readme/syntax/count.md
result_in_plaintext: False
- name: comment
template: tests/mext/readme/syntax/comment.mext
has_params: False
result: tests/mext/readme/syntax/comment.md
result_in_plaintext: False
template_language_usage:
- name: basic
title: Basic usage
intro: 'To compose a template with Mext, use `Mext.compose`.'
python: tests/mext/readme/template_language_usage/basic.py
result: tests/mext/readme/template_language_usage/basic.out
- name: reuse
title: Reuse template
intro: 'You can set a template and use different variables with it.'
template: tests/mext/readme/template_language_usage/reuse.mext
python: tests/mext/readme/template_language_usage/reuse.py
result: tests/mext/readme/template_language_usage/reuse.out
- name: with_template
title: Use with statement
intro: 'You can use `use_template` and `use_params` with the `with` statement.'
template: tests/mext/readme/template_language_usage/with_template.mext
python: tests/mext/readme/template_language_usage/with_template.py
result: tests/mext/readme/template_language_usage/with_template.out
- name: register_formatter
title: Use custom formatters
intro: '`register_formatter` is a powerful function that enables custom functions for text processing.'
python: tests/mext/readme/template_language_usage/register_formatter.py
result: tests/mext/readme/template_language_usage/register_formatter.out