Skip to content

Commit

Permalink
Macro var resolution test case
Browse files Browse the repository at this point in the history
  • Loading branch information
phensley committed Feb 22, 2024
1 parent 9c95885 commit b05ed93
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:JSON
{
"key": "hello"
}

:PARTIALS
{}

:TEMPLATE
{.macro m}{.if @}pass{.or}fail{.end} {@|json}{.end}

{@|apply m}
{key|apply m}
{missing|apply m}

:OUTPUT
pass {"key":"hello"}
pass "hello"
fail

0 comments on commit b05ed93

Please sign in to comment.