aboutsummaryrefslogtreecommitdiff
path: root/velocity-custom-parser-example/src/test/resources/templates/test.md
diff options
context:
space:
mode:
authorAndrew Vuong <akvuong@google.com>2023-02-13 23:15:30 +0000
committerAndrew Vuong <akvuong@google.com>2023-02-13 23:27:18 +0000
commit31f36d06e129f44025af7a07974a688bf294329d (patch)
tree3813a8a6c4402b036011aeb82ba7597aac31b33a /velocity-custom-parser-example/src/test/resources/templates/test.md
parentbc4c7a291f1579e1b6b903dc43b707a755577565 (diff)
parentdc905fdbe4b5f2ea3ac2cb157f1d13ef8dd6c0bb (diff)
downloadapache-velocity-engine-31f36d06e129f44025af7a07974a688bf294329d.tar.gz
Initial import of apache-velocity-engine from upstream master
Bug: 262898801 Test: TH Change-Id: I820a8f113056324148395f29443c5acd84f4acca
Diffstat (limited to 'velocity-custom-parser-example/src/test/resources/templates/test.md')
-rw-r--r--velocity-custom-parser-example/src/test/resources/templates/test.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/velocity-custom-parser-example/src/test/resources/templates/test.md b/velocity-custom-parser-example/src/test/resources/templates/test.md
new file mode 100644
index 00000000..f8badd9d
--- /dev/null
+++ b/velocity-custom-parser-example/src/test/resources/templates/test.md
@@ -0,0 +1,23 @@
+# Test markdown template for the custom parser
+
+@* this is a comment *@
+
+@set ($subtitle = 'Custom parser is needed')
+
+## $subtitle
+
+some $some @@ should print 'some value'
+
+@if ($some == 'value')
+ all seems fine
+@else
+ there is a problem
+@end
+
+@macro(block $foo)
+ block macro called with foo=$foo and bodyContent=$bodyContent
+@end
+
+@%block($some)
+here
+@end