Created
October 11, 2011 21:24
-
-
Save rmarscher/1279494 to your computer and use it in GitHub Desktop.
li3_mustache as default media renderer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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