From afd2d0b5e9a4b62336296236e376d56686f27102 Mon Sep 17 00:00:00 2001 From: garyhiscox Date: Thu, 20 Dec 2012 12:13:11 +0000 Subject: [PATCH] basic extends template functionality --- .gitignore | 3 ++- mustache/Mustache.cfc | 42 +++++++++++++++++++++++++++++++++++++++++- tests/RenderTest.cfc | 12 ++++++++++++ 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3c1285d..4f9c418 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ mxunit !.htaccess /settings.xml *.iml -/out \ No newline at end of file +/out +WEB-INF \ No newline at end of file diff --git a/mustache/Mustache.cfc b/mustache/Mustache.cfc index f120ef0..94e2ee9 100644 --- a/mustache/Mustache.cfc +++ b/mustache/Mustache.cfc @@ -30,14 +30,18 @@ + + + + @@ -66,12 +70,48 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/RenderTest.cfc b/tests/RenderTest.cfc index 8aac08f..9baecc3 100644 --- a/tests/RenderTest.cfc +++ b/tests/RenderTest.cfc @@ -663,4 +663,16 @@ Support Team ') /> + + + + partials = {wrapper = "--{{topbit}}--{{%body%}}--{{tailbit}}--"}; + + + + + + + + \ No newline at end of file