Permalink
Browse files

{{import}} tests

  • Loading branch information...
hiddenmemory committed Apr 9, 2012
1 parent b2d719f commit 0a79cdd32f2832d41292b93f99b37d644cc512b4
Showing with 66 additions and 0 deletions.
  1. +8 −0 import/Test01.import
  2. +5 −0 import/Test01.input
  3. +13 −0 import/Test01.output
  4. +8 −0 import/Test02.import
  5. +12 −0 import/Test02.input
  6. +20 −0 import/Test02.output
View
@@ -0,0 +1,8 @@
+Include file:
+
+{{def GlobalAuthor="Chris" GlobalURL="http://www.hiddenmemory.co.uk"}}
+
+{{#def DefineAuthor author="" url=""}}
+ <author>{{author}}</author>
+ <url>{{url}}</url>
+{{/def}}
View
@@ -0,0 +1,5 @@
+Basic Import test:
+
+{{import source="Test01.import"}}
+
+{{DefineAuthor author=GlobalAuthor url=GlobalURL}}
View
@@ -0,0 +1,13 @@
+Basic Import test:
+
+Include file:
+
+
+
+
+
+
+
+ <author>Chris</author>
+ <url>http://www.hiddenmemory.co.uk</url>
+
View
@@ -0,0 +1,8 @@
+Include file:
+
+{{def InlineAuthor="Dave" InlineURL="http://untyped.com"}}
+
+{{#def InlineDefineAuthor author="" url=""}}
+ <author>{{author}}</author>
+ <url>{{url}}</url>
+{{/def}}
View
@@ -0,0 +1,12 @@
+Block Scoped Import test:
+
+Define main:
+
+{{#def main}}
+ {{import source="Test02.import"}}
+ {{InlineDefineAuthor author=InlineAuthor url=InlineURL}}
+{{/def}}
+
+GlobalAuthor = '{{GlobalAuthor}}' (should be nothing)
+
+Main: {{main}}
View
@@ -0,0 +1,20 @@
+Block Scoped Import test:
+
+Define main:
+
+
+
+GlobalAuthor = '' (should be nothing)
+
+Main:
+ Include file:
+
+
+
+
+
+
+ <author>Dave</author>
+ <url>http://untyped.com</url>
+
+

0 comments on commit 0a79cdd

Please sign in to comment.