Skip to content

Instantly share code, notes, and snippets.

@rmarscher
Created October 11, 2011 21:24
Show Gist options
  • Save rmarscher/1279494 to your computer and use it in GitHub Desktop.
Save rmarscher/1279494 to your computer and use it in GitHub Desktop.
li3_mustache as default media renderer
// in one of your bootstrap files... possibly config/bootstrap/media.php
use lithium\net\http\Media;
Media::type('default', null, array(
'view' => 'lithium\template\View',
'loader' => 'Mustache',
'renderer' => 'Mustache',
'paths' => array(
'template' => '{:library}/views/{:controller}/{:template}.{:type}',
'layout' => '{:library}/views/layouts/{:layout}.{:type}',
'element' => '{:library}/views/elements/{:template}.{:type}'
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment