Skip to content

Dearon/Slim-Mustache

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Slim Mustache

This repository contains a custom View class for Mustache.php. You can use the custom View class by either requiring the appropriate class in your Slim Framework bootstrap file and initialize your Slim application using an instance of the selected View class or using Composer (the recommended way).

How to Install

using Composer

Create a composer.json file in your project root:

{
    "require": {
        "dearon/slim-mustache": "0.1.*"
    }
}

Then run the following composer command:

$ php composer.phar install

How to use

<?php
require 'vendor/autoload.php';

$app = new \Slim\Slim(array(
    'view' => new \Slim\Mustache\Mustache()
));

To use Mustache options do the following:

$view = $app->view();
$view->parserOptions = array(
    'charset' => 'ISO-8859-1'
);

Authors

Remco Meeuwissen

License

MIT Public License

About

A Mustache view class for the Slim Framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages