2017 © Pedro Peláez
 

library zf2-mustache-module

Zend Framework 2 module providing integration with the Mustache rendering engine.

image

widmogrod/zf2-mustache-module

Zend Framework 2 module providing integration with the Mustache rendering engine.

  • Wednesday, November 18, 2015
  • by widmogrod
  • Repository
  • 1 Watchers
  • 9 Stars
  • 13,027 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Mustache

Summery

Zend Framework 2 module providing integration with mustache.php rendering engine, (*1)

Requirements

  • Zend Framework 2 (https://github.com/zendframework/zf2). Tested on Zend Framework 2.0.0rc6.

Installation

Composer installation

  1. cd my/project/directory
  2. create a composer.json file with following content:, (*2)

    json { "require": { "widmogrod/zf2-mustache-module": "dev-master" } }, (*3)

  3. run php composer.phar install
  4. open my/project/folder/configs/application.config.php and add 'Mustache' to your 'modules' parameter.

How to add Mustache rendering to ZF2

Add to your Application module config file (module.config.php) new rendering strategy as following:, (*4)

<?php
return array(

    'view_manager' => array(
        // add this
        'strategies' => array(
            'Mustache\View\Strategy'
        ),
    ),
);

How to configure partials

Add to your Application module config file (module.config.php), (*5)

<?php
return array(

    'mustache' => array(
        'partials_loader' => array( __DIR__ . '/../view/partials')
    ),
);

The Versions

18/11 2015

dev-master

9999999-dev

Zend Framework 2 module providing integration with the Mustache rendering engine.

  Sources   Download

The Requires