Merge branch 'release/2.0.5'
This commit is contained in:
commit
9a715e2631
|
@ -108,7 +108,9 @@ Yum, logic in a class, where it belongs :)
|
|||
|
||||
<p class="pagination">
|
||||
{{#items}}
|
||||
{{#url}}<a href="{{url}}" {{#title}}rel="{{rel}}"{{/title}}>{{/url}}{{#num}}<strong>{{/num}}{{name}}{{#num}}</strong>{{/num}}{{#url}}</a>{{/url}}
|
||||
{{#url}}<a href="{{url}}" {{#title}}rel="{{rel}}"{{/title}}>{{/url}}
|
||||
{{#num}}<strong>{{/num}}{{name}}{{#num}}</strong>{{/num}}
|
||||
{{#url}}</a>{{/url}}
|
||||
{{/items}}
|
||||
</p>
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
vendor/mustache
vendored
2
vendor/mustache
vendored
|
@ -1 +1 @@
|
|||
Subproject commit a448453da30c6862cad912cd3db4ac4b8751deb2
|
||||
Subproject commit a037d2d4503db8f3c77c4bfb84355791642a9c39
|
Loading…
Reference in a new issue