-
Notifications
You must be signed in to change notification settings - Fork 1
/
README-yaml.mext
33 lines (33 loc) · 1.13 KB
/
README-yaml.mext
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
{@import "README-yaml.yaml"}
syntaxes:
{@for syntax in syntaxes}
- name: {syntax[name]}
{@if syntax[ignored_mext]}
template: tests/mext/readme/syntax/{syntax[name]}.mext.ignore
{@else}
template: tests/mext/readme/syntax/{syntax[name]}.mext
{@endif}
has_params: {syntax[has_input]}
{@if syntax[has_input]}
params: tests/mext/readme/syntax/{syntax[name]}.yaml
{@endif}
result: tests/mext/readme/syntax/{syntax[name]}.md
{@set result_in_plaintext false}
{@if not novalue syntax[result_in_plaintext]}
{@set result_in_plaintext syntax[result_in_plaintext]}
{@endif}
result_in_plaintext: {result_in_plaintext}
{@endfor}
template_language_usage:
{@for usage in template_language_usage}
- name: {usage[name]}
title: {usage[title]}
intro: '{usage[intro]}'
{@if not novalue usage[has_template]}
{@if usage[has_template]}
template: tests/mext/readme/template_language_usage/{usage[name]}.mext
{@endif}
{@endif}
python: tests/mext/readme/template_language_usage/{usage[name]}.py
result: tests/mext/readme/template_language_usage/{usage[name]}.out
{@endfor}