File tree Expand file tree Collapse file tree 4 files changed +88
-2
lines changed Expand file tree Collapse file tree 4 files changed +88
-2
lines changed Original file line number Diff line number Diff line change 3
3
> * PSR Compatible full featured Framework*
4
4
5
5
* [ Key Features] ( /#Key-Features ) *
6
- * [ Getting Started] ( /framework/ ) *
6
+ * [ Getting Started] ( /framework/getting-started.md ) *
Original file line number Diff line number Diff line change 3
3
* [ Getting Started] ( /framework/getting-started.md " Getting started guide for Antidot Framework ")
4
4
* [ Running Application] ( /framework/running-application.md " Running guide for Antidot Framework ")
5
5
* [ Routing] ( /framework/routing.md )
6
+ * [ Templating] ( /framework/templating.md )
6
7
* [ Dependency Injection] ( /framework/dependency-injection.md )
7
8
* [ Logger] ( /framework/logger.md )
8
9
* [ Event System] ( /framework/event-system.md )
Original file line number Diff line number Diff line change 1
- ## Logger
1
+ # Logger
2
2
3
3
> https://github.com/antidot-framework/antidot-logger
4
4
Original file line number Diff line number Diff line change
1
+ # Templating
2
+
3
+ > https://github.com/antidot-framework/template-renderer
4
+
5
+ By default the Antidot framework doesn't have any template engine, you can install it as a separate component.
6
+
7
+ Choose a template engine from the different available implementations
8
+
9
+ > [ Pug Template renderer] ( https://github.com/antidot-framework/phug-template-renderer )
10
+
11
+ ## Config
12
+
13
+ <!-- tabs:start -->
14
+
15
+ ### ** Symfony Style yaml**
16
+
17
+ Coming soon
18
+
19
+ ### ** Symfony php**
20
+
21
+ ``` php
22
+ <?php
23
+
24
+ declare(strict_types=1);
25
+
26
+ $config = [
27
+ 'parameters' => [
28
+ 'templates' => [
29
+ 'extensino' => 'pug',
30
+ ],
31
+ 'template' => [
32
+ 'pretty' => true,
33
+ 'expressionLanguage' => 'js',
34
+ 'pugjs' => false,ee
35
+ 'localsJsonFile' => false,
36
+ 'cache' => 'var/cache/pug',
37
+ 'template_path' => 'templates/',
38
+ 'globals' => [
39
+ 'title' => 'Antidot Framework'
40
+ ],
41
+ 'filters' => [],
42
+ 'keywords' => [],
43
+ 'helpers' => [],
44
+ 'default_params' => [],
45
+ ],
46
+ ],
47
+ ];
48
+ ```
49
+
50
+ ### ** Zend style yaml**
51
+
52
+ Coming soon
53
+
54
+ ### ** Zend Style php**
55
+
56
+ ``` php
57
+ <?php
58
+
59
+ declare(strict_types=1);
60
+
61
+ $config = [
62
+ 'templates' => [
63
+ 'extensino' => 'pug',
64
+ ],
65
+ 'template' => [
66
+ 'pretty' => true,
67
+ 'expressionLanguage' => 'js',
68
+ 'pugjs' => false,
69
+ 'localsJsonFile' => false,
70
+ 'cache' => 'var/cache/pug',
71
+ 'template_path' => 'templates/',
72
+ 'globals' => [
73
+ 'title' => 'Antidot Framework'
74
+ ],
75
+ 'filters' => [],
76
+ 'keywords' => [],
77
+ 'helpers' => [],
78
+ 'default_params' => [],
79
+ ],
80
+ ];
81
+ ```
82
+
83
+ <!-- tabs:end -->
84
+
85
+ ## Usage
You can’t perform that action at this time.
0 commit comments