From a723ef519c8fc2e8b62a4795add388223015a0b0 Mon Sep 17 00:00:00 2001 From: Jeremy Bush Date: Thu, 29 Sep 2011 13:44:06 -0500 Subject: [PATCH 1/3] Fixing formatting of example mustache, and fixing old content partial --- README.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 80b6918..a0d5d64 100644 --- a/README.markdown +++ b/README.markdown @@ -108,7 +108,9 @@ Yum, logic in a class, where it belongs :)

{{#items}} - {{#url}}{{/url}}{{#num}}{{/num}}{{name}}{{#num}}{{/num}}{{#url}}{{/url}} + {{#url}}{{/url}} + {{#num}}{{/num}}{{name}}{{#num}}{{/num}} + {{#url}}{{/url}} {{/items}}

@@ -129,7 +131,7 @@ You must define partials within the $_partials array in your view class. The ke Kostache comes with a View_Layout class instead of a template controller. This allows your layouts to be more OOP and self contained, and they do not rely on your controllers so much. -To use it, have your view extend the View_Layout class. You can then specify your own layout file by placing it in templates/layout.mustache. At a minimum, it needs to have a {{>body}} partial defined in it. +To use it, have your view extend the View_Layout class. You can then specify your own layout file by placing it in templates/layout.mustache. At a minimum, it needs to have a {{>content}} partial defined in it. If you have a view that extends the View_Layout class, but wish to render only the template and not the entire layout, you can set the public $render_layout property to FALSE. This is useful if you want to use the same view class for external requests and HMVC requests. From 8e4228c9d333cbe59c65ee9703c0e33f6d14bd90 Mon Sep 17 00:00:00 2001 From: Jeremy Bush Date: Thu, 29 Sep 2011 13:45:12 -0500 Subject: [PATCH 2/3] Bumping mustache version to 0.8.0 --- vendor/mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/mustache b/vendor/mustache index a448453..a037d2d 160000 --- a/vendor/mustache +++ b/vendor/mustache @@ -1 +1 @@ -Subproject commit a448453da30c6862cad912cd3db4ac4b8751deb2 +Subproject commit a037d2d4503db8f3c77c4bfb84355791642a9c39 From 99d87676216a2fab1bd6e62309e6e6c28a267528 Mon Sep 17 00:00:00 2001 From: Jeremy Bush Date: Thu, 29 Sep 2011 13:47:49 -0500 Subject: [PATCH 3/3] bumping version --- classes/kohana/kostache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/kohana/kostache.php b/classes/kohana/kostache.php index 34fa87e..33a30a9 100644 --- a/classes/kohana/kostache.php +++ b/classes/kohana/kostache.php @@ -12,7 +12,7 @@ */ abstract class Kohana_Kostache { - const VERSION = '2.0.4'; + const VERSION = '2.0.5'; /** * Factory method for Kostache views. Accepts a template path and an