Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
archery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
archery
Commits
6b52c9fa
Commit
6b52c9fa
authored
Jan 18, 2016
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Latte cache dir separate from rest
parent
c698493e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
Makefile
Makefile
+0
-1
app.php
app.php
+1
-4
No files found.
Makefile
View file @
6b52c9fa
...
@@ -53,7 +53,6 @@ min: static
...
@@ -53,7 +53,6 @@ min: static
$(CACHE_DIR)
:
$(CACHE_DIR)
:
mkdir
-p
$@
mkdir
-p
$@
setfacl
-R
-m
u:
$(HTTPDUSER)
:rwX
--
$@
# Gettext translations
# Gettext translations
...
...
app.php
View file @
6b52c9fa
...
@@ -40,12 +40,9 @@ define('ROOT_URL', $config['root_url']);
...
@@ -40,12 +40,9 @@ define('ROOT_URL', $config['root_url']);
* Set up app with custom Latte view
* 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
(
$view
=
new
Slim\Latte\LatteView
(
array
(
'path'
=>
__DIR__
.
'/templates'
,
'path'
=>
__DIR__
.
'/templates'
,
'cache'
=>
$config
[
'
cache_dir'
]
.
'/latte'
,
'cache'
=>
$config
[
'
latte_cache'
]
,
'configure_engine'
=>
function
(
$engine
)
{
'configure_engine'
=>
function
(
$engine
)
{
// support for {_'...'} syntax in latte templates
// support for {_'...'} syntax in latte templates
$engine
->
addFilter
(
'translate'
,
function
()
{
$engine
->
addFilter
(
'translate'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment