/
view.php
53 lines (33 loc) · 1.79 KB
/
view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* This config file can be used to customize everything about the views. It is used by the "View::class".
*
* @see \MAKS\Velox\Frontend\View
*/
return [
// The file extension used when looking for view files (Layouts, Pages, Partials).
'fileExtension' => View::DEFAULTS['fileExtension'],
// Whether to inherit view files from parent theme.
'inherit' => View::DEFAULTS['inherit'],
// Whether to minify the rendered views.
'minify' => View::DEFAULTS['minify'],
// Whether to cache the rendered views as static HTML files.
'cache' => View::DEFAULTS['cache'],
// An array or string of pages that should never be cached (useful for dynamic pages).
'cacheExclude' => View::DEFAULTS['cacheExclude'],
// Whether to cache the views in nested directories as "index.html" or as file with an autogenerated name based on its path.
'cacheAsIndex' => View::DEFAULTS['cacheAsIndex'],
// Whether to put a comment with a timestamp in the cached view file.
'cacheWithTimestamp' => View::DEFAULTS['cacheWithTimestamp'],
// The default names of files VELOX falls back to when rendering a view.
'defaultLayoutName' => 'main', // View::DEFAULTS['name'],
'defaultPageName' => View::DEFAULTS['name'],
'defaultPartialName' => View::DEFAULTS['name'],
'defaultSectionName' => View::DEFAULTS['name'],
// The variables passed to all Layouts, Pages, or Partials by default, they will be passed as an array under "default*Vars".
'defaultLayoutVars' => View::DEFAULTS['variables'],
'defaultPageVars' => View::DEFAULTS['variables'],
'defaultPartialVars' => View::DEFAULTS['variables'],
// Templating engine configuration.
'engine' => View::DEFAULTS['engine'],
];