Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Logic-less View/Mustache Module for Kohana v3

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 classes
Octocat-spinner-32 templates
Octocat-spinner-32 vendor
Octocat-spinner-32 README.markdown
Octocat-spinner-32 init.php
README.markdown

KOstache

KOstache is a kohana module for using Mustache templates in your application.

Mustache is a logic-less template class. It is impossible to embed logic into mustache files.

Usage

View classes go in classes/view/

classes/view/example.php

<?php

class View_Example extends Kostache
{
    public $foo = 'bar';
}

Template files go in templates/

templates/example.mustache

This is a {{foo}}

In your controller, just do:

$view = new View_Example;
echo $view;

And you get:

"This is a bar"

For specific usage and documentation, see

PHP Mustache

Original Mustache

Something went wrong with that request. Please try again.