Skip to content

Commit abe4116

Browse files
committed
add templating docs, fix getting started link
1 parent a6aa9f3 commit abe4116

File tree

4 files changed

+88
-2
lines changed

4 files changed

+88
-2
lines changed

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
> *PSR Compatible full featured Framework*
44
55
*[Key Features](/#Key-Features)*
6-
*[Getting Started](/framework/)*
6+
*[Getting Started](/framework/getting-started.md)*

docs/framework/_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* [Getting Started](/framework/getting-started.md "Getting started guide for Antidot Framework")
44
* [Running Application](/framework/running-application.md "Running guide for Antidot Framework")
55
* [Routing](/framework/routing.md)
6+
* [Templating](/framework/templating.md)
67
* [Dependency Injection](/framework/dependency-injection.md)
78
* [Logger](/framework/logger.md)
89
* [Event System](/framework/event-system.md)

docs/framework/logger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Logger
1+
# Logger
22

33
> https://github.com/antidot-framework/antidot-logger
44

docs/framework/templating.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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

0 commit comments

Comments
 (0)