!! article argv 0 test page !! text echo $argv[0]; !! endarticle !! article argv 1 test page !! text echo $argv[1]; !! endarticle !! article argv 7 test page !! text echo $argv[7]; !! endarticle !! article argv foo test page !! text {{#phptag: $argv['foo'] }} !! endarticle !! test argv 0 test !! input {{:argv 0 test page}} !! result

Argv 0 test page

!! end !! test argv 1 test !! input {{:argv 1 test page|Hello}} !! result

Hello

!! end !! test argv 7 test !! input {{:argv 7 test page|7=Seven}} !! result

Seven

!! end !! test argv foo test !! input {{:argv foo test page|foo=bar}} !! result

bar

!! end !! test echo null true false !! input echo null, true, false; !! result

1

!! end !! test tag nothing !! input !! result !! end !! test tag empty !! input !! result !! end !! test tag empty and ; !! input ; !! result !! end !! test pf nothing !! input {{#phptag:}} !! result !! end !! test pf empty !! input {{#phptag: }} !! result !! end !! test pf echo html tag div !! input {{#phptag: echo '
test
'; }} !! result
test
!! end !! test echo html tag div !! input echo '
test
';
!! result
test
!! end !! test pf echo html tag a !! input {{#phptag: echo 'test'; }} !! result

<a href="test.com">test</a>

!! end !! test echo html tag a !! input echo 'test'; !! result

<a href="test.com">test</a>

!! end !! test pf echo html tag script !! input {{#phptag: echo ''; }} !! result

<script>alert "hello!";</script>

!! end !! test echo html tag script !! input echo ''; !! result

<script>alert "hello!";</script>

!! end !! test pf echo html tag onmouseover !! input
test
!! result
test
!! end !! test echo html tag onmouseover !! input
test
!! result
test
!! end