[!-- Syntax Test --] [:page contentType="[=foo.contentType]" args="foo, bool c:false" import="dart:collection show LinkedHashMap" dart="var someExternal = 123;"/] [:header age="129" accept-ranges="[=foo.acceptRanges]" ] [:header Cache-Control="no-cache"] [= "$foo.name [${foo.title}]" ]

This is a test with """ and \ and ""\".

Another expresion: "[= foo.description]"

An empty expression: [= ]

This is not a tag: [:foo ], [:another and [/none].

[:for fruit in ["apple", "orange"]] [=fruit] [/for] [:if foo.isCustomer] *Custmer* [:include "/in-if" /] [:else if c] [:forward "/x/y/z"/] [:else if foo.isEmployee] *Employee* [:forward syntax c="[=true]" foo="abc"/] [:else] *Unknown* \[/if] [!-- escape a [/if] --] [/if] [:var whatever] define a variable [:for fruit in ["apple", "orange"]] [=fruit] [/for] [/var] [:include "/abc"/] [:include syntax c="[=true]"] [:var foo] The content for foo [/var] [/include] [:if foo.isMeaningful] something is meaningful: [=whatever] [:forward "/foo?abc" first="1st" second="[=foo]"/] [/if] [:script src="/script/foo.dart"] [:json-js foo1=foo.name.length ~/ 2] [:json foo2 = foo.name.length ~/ 2 * "/]".length /] [!----] [:dart/] [!---] -] --] [:dart] new LinkedHashMap(); [/dart]