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-14 19:53:46 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-02-14 19:53:46 +0000
commiteabfc4b86246fe77090ac2a4594eef472766c753 (patch)
tree3813a8a6c4402b036011aeb82ba7597aac31b33a /velocity-custom-parser-example/src/test/resources/templates/test.md
parentbc4c7a291f1579e1b6b903dc43b707a755577565 (diff)
parent31f36d06e129f44025af7a07974a688bf294329d (diff)
downloadapache-velocity-engine-eabfc4b86246fe77090ac2a4594eef472766c753.tar.gz
Initial import of apache-velocity-engine from upstream master am: 31f36d06e1
Original change: https://android-review.googlesource.com/c/platform/external/apache-velocity-engine/+/2434334 Change-Id: Ib46a9892a5a4c948eb063b60b4bcaa4656ef7e9b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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