Skip to content
Snippets Groups Projects
Commit 6b52c9fa authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Make Latte cache dir separate from rest

parent c698493e
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,6 @@ min: static
$(CACHE_DIR):
mkdir -p $@
setfacl -R -m u:$(HTTPDUSER):rwX -- $@
# Gettext translations
......
......@@ -40,12 +40,9 @@ define('ROOT_URL', $config['root_url']);
* Set up app with custom Latte view
*/
if (!file_exists($config['cache_dir']))
mkdir($config['cache_dir'], 0777, true);
$view = new Slim\Latte\LatteView(array(
'path' => __DIR__ . '/templates',
'cache' => $config['cache_dir'] . '/latte',
'cache' => $config['latte_cache'],
'configure_engine' => function ($engine) {
// support for {_'...'} syntax in latte templates
$engine->addFilter('translate', function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment