From 4059c4da0088d4ad149dae0c2ca536b17519391b Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 6 Apr 2010 00:24:33 -0400 Subject: [PATCH] Two new examples: 'delimiters' and 'sections'. Would be more exciting if 50% of new examples didn't fail :) --- examples/delimiters/Delimiters.php | 14 ++++++++++++++ examples/delimiters/delimiters.mustache | 8 ++++++++ examples/delimiters/delimiters.txt | 4 ++++ examples/sections/Sections.php | 14 ++++++++++++++ examples/sections/sections.mustache | 5 +++++ examples/sections/sections.txt | 4 ++++ 6 files changed, 49 insertions(+) create mode 100644 examples/delimiters/Delimiters.php create mode 100644 examples/delimiters/delimiters.mustache create mode 100644 examples/delimiters/delimiters.txt create mode 100644 examples/sections/Sections.php create mode 100644 examples/sections/sections.mustache create mode 100644 examples/sections/sections.txt diff --git a/examples/delimiters/Delimiters.php b/examples/delimiters/Delimiters.php new file mode 100644 index 0000000..74ab583 --- /dev/null +++ b/examples/delimiters/Delimiters.php @@ -0,0 +1,14 @@ + "And it worked the second time."), + array('item' => "As well as the third."), + ); + } + + public $final = "Then, surprisingly, it worked the final time."; +} \ No newline at end of file diff --git a/examples/delimiters/delimiters.mustache b/examples/delimiters/delimiters.mustache new file mode 100644 index 0000000..e9b0332 --- /dev/null +++ b/examples/delimiters/delimiters.mustache @@ -0,0 +1,8 @@ +{{=<% %>=}} +* <% start %> +<%=| |=%> +|# middle | +* | item | +|/ middle | +|={{ }}=| +* {{ final }} \ No newline at end of file diff --git a/examples/delimiters/delimiters.txt b/examples/delimiters/delimiters.txt new file mode 100644 index 0000000..e6b2d7a --- /dev/null +++ b/examples/delimiters/delimiters.txt @@ -0,0 +1,4 @@ +* It worked the first time. +* And it worked the second time. +* As well as the third. +* Then, surprisingly, it worked the final time. \ No newline at end of file diff --git a/examples/sections/Sections.php b/examples/sections/Sections.php new file mode 100644 index 0000000..baa61d7 --- /dev/null +++ b/examples/sections/Sections.php @@ -0,0 +1,14 @@ + "And it worked the second time."), + array('item' => "As well as the third."), + ); + } + + public $final = "Then, surprisingly, it worked the final time."; +} \ No newline at end of file diff --git a/examples/sections/sections.mustache b/examples/sections/sections.mustache new file mode 100644 index 0000000..44dfce4 --- /dev/null +++ b/examples/sections/sections.mustache @@ -0,0 +1,5 @@ +* {{ start }} +{{# middle }} +* {{ item }} +{{/ middle }} +* {{ final }} \ No newline at end of file diff --git a/examples/sections/sections.txt b/examples/sections/sections.txt new file mode 100644 index 0000000..e6b2d7a --- /dev/null +++ b/examples/sections/sections.txt @@ -0,0 +1,4 @@ +* It worked the first time. +* And it worked the second time. +* As well as the third. +* Then, surprisingly, it worked the final time. \ No newline at end of file