From 65071ab901e50eb5d056ac8d0de75c3fe7844b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?!=CE=BC?= <38025818+notmu@users.noreply.github.com> Date: Sat, 21 Apr 2018 16:18:36 -0700 Subject: [PATCH 1/2] #345 Add example for conditional files. This is to close issue 345 and add an example for others that are looking to do this. --- docs/03/00.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/03/00.md b/docs/03/00.md index 1fbd53e9..8b530efe 100644 --- a/docs/03/00.md +++ b/docs/03/00.md @@ -112,6 +112,21 @@ scalaVersion := "2.10.6" \$endif\$ + +These could also be used include/exclude files or directories: + +```bash +src/main/g8 +├── $name__normalize$ +│   ├── $if(jvm.truthy)$jvm$endif$ +│   │   └── src +│   │   └── main +│   │   └── scala +│   │   └── $organization__packaged$ +│   │   └── $name;format="Camel"$.scala + +``` + [conditionals]: https://github.com/antlr/stringtemplate4/blob/master/doc/templates.md#conditionals ### name field From b00236510ca38e6b6ec66c3bd7c97fb333ac2f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?!=CE=BC?= <38025818+notmu@users.noreply.github.com> Date: Sat, 21 Apr 2018 17:29:48 -0700 Subject: [PATCH 2/2] Escape interpolated identifiers --- docs/03/00.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/03/00.md b/docs/03/00.md index 8b530efe..8ace7dc6 100644 --- a/docs/03/00.md +++ b/docs/03/00.md @@ -117,13 +117,13 @@ These could also be used include/exclude files or directories: ```bash src/main/g8 -├── $name__normalize$ -│   ├── $if(jvm.truthy)$jvm$endif$ +├── \$name__normalize\$ +│   ├── \$if(jvm.truthy)\$jvm\$endif\$ │   │   └── src │   │   └── main │   │   └── scala -│   │   └── $organization__packaged$ -│   │   └── $name;format="Camel"$.scala +│   │   └── \$organization__packaged\$ +│   │   └── \$name;format="Camel"\$.scala ```