-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhat-dwoo.html
140 lines (132 loc) · 8.31 KB
/
what-dwoo.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
---
layout: default
title: What is Dwoo?
subtitle: Dwoo is a modern, flexible and object-oriented template engine
nav: whatdwoonav
---
<div class="main">
<section id="overview" class="bgc-light-gray pb-30 pt-80">
<div class="container">
<h2 class="mb-15">Overview</h2>
<p class="text-justify">
Dwoo (<a href="https://en.wikipedia.org/wiki/Help:IPA_for_English" target="_blank">/diː-wu:/</a>)
(stylized as dwoo) is a modern, flexible and oriented object template engine for PHP, facilitating the
separation of presentation (HTML/CSS) from application logic.<br><br>
In many aspects, dwoo is compatible with Smarty's templates and plugins because dwoo's author based it
on the general ideas that Smarty has introduced to the world of web development.<br><br>
Started in early 2008 by <a href="//github.com/Seldaek" target="_blank">Jordi Boggiano</a>, the idea
came from the fact that Smarty is getting older and older. It carries the weight of it's age, having
old features that are inconsistent compared to newerones, being written for PHP4, it doesn't take
advantage of PHP5's more advanced features in the area.<br><br>
Dwoo's template engine takes advantage of the new features offered by PHP5. So it is a well-written,
object-oriented template engine that allows easier and faster development compared with Smarty and still
it is compatible enough to allow developers using Smarty to make a smooth transition to dwoo.<br><br>
Since 2013, a new author push the project back on track following a time of non-activity of the project.
New releases has been pushed online to make dwoo more stable than before, fixing issues, making
package available on <a href="https://packagist.org/packages/dwoo/dwoo" target="_blank">packagist.org</a>
for everyone and adding new features.<br><br>
Dwoo template engine is released under a modified <a href="/about.html#/license">LGPLv3 license</a>.
</p>
</div>
</section>
<section id="template-engine" class="pb-30 pt-80">
<div class="container">
<h2 class="mb-15">What is a Template Engine?</h2>
<div class="row align-items-center">
<div class="hidden-sm-down col-md-5 offset-md-1">
<img src="/assets/img/template-engine.png" class="img-responsive">
</div>
<div class="col-xs-12 col-sm-7 col-md-6">
<p class="text-justify">
As we continue to develop complex web applications, it is becoming more important to have a wall
of separation between <em>application logic</em> and <em>display logic</em> so that back-end
developers and front-end developers can collaborate on the same areas of the website without
having to step around each other’s code.<br><br>
A template engine solves this situation by providing a concise syntax front-end developers can
use to display data prepared by back-end developers. The front-end developers experience the
benefit of clean and pretty views they can read and modify, and in-turn the back-end developers
can free themselves of the responsibility of maintaining the views.<br><br>
It’s a win-win.
</p>
</div>
</div>
</div>
</section>
<section id="for-developers" class="bgc-light-gray pb-30 pt-80">
<div class="container">
<h2 class="mb-15">Dwoo for Developers</h2>
<div class="row align-items-center">
<div class="col-xs-12 col-sm-7 col-md-6">
<p class="text-justify">
Dwoo provide a well coded library following <em>PHP Standards Recommendations</em> such as
<a href="http://www.php-fig.org/psr/psr-1/" target="_blank">PSR-1</a> Basic Coding Standard,
<a href="http://www.php-fig.org/psr/psr-2/" target="_blank">PSR-2</a> Coding Style Guide and
<a href="http://www.php-fig.org/psr/psr-4/" target="_blank">PSR-4</a> Autoloading Standard.
<br><br>
Dwoo library is registered on
<a href="https://packagist.org/packages/dwoo/dwoo" target="_blank">Packagist.org</a>,
<em>The PHP Package Repository</em> website allowing developers an easier installation of the
library in their PHP projects.<br><br>
It's also compatible with latest coding features and can be used with <strong>PHP5</strong>
and <strong>PHP7</strong> versions. A fast caching and compiler systems are included in dwoo,
used to speed up calls of rendered pages.<br>Dwoo include a plugin architecture that is used
for almost all the customizable functionality. Users can easily create they own plugins
using the well documented API.<br><br>
Finally, dwoo provide a configuration file for Docker to execute
<a href="https://phpunit.de" target="_blank">PHPUnit</a> testing framework from
<strong>PHP5.3</strong> to <strong>PHP7.1</strong>.
</p>
<p class="text-center">
<a class="btn btn-success" href="/documentation/v1.3/dwoo-for-developers.html">Read documentation for Developers</a>
</p>
</div>
<div class="hidden-sm-down col-md-5 offset-md-1">
<img src="/assets/img/code.png" class="img-responsive">
</div>
</div>
</div>
</section>
<section id="for-designers" class="pb-30 pt-80">
<div class="container">
<h2 class="mb-15">Dwoo for Designers</h2>
<div class="row align-items-center">
<div class="hidden-sm-down col-md-5 offset-md-1">
<img src="/assets/img/brush.png" class="img-responsive">
</div>
<div class="col-xs-12 col-sm-7 col-md-6">
<p class="text-justify">
Without forgetting frontend developers, dwoo provide a complete documentation to learn dwoo
syntax. Following the same syntax has Smarty, designers can easily make a smooth transition
from one to another.<br><br>
Dwoo is very easy to use and understand, it provide a lots of plugins allowing designers to
handle data directly in their part.
</p>
<p class="text-center">
<a class="btn btn-success" href="/documentation/v1.3/dwoo-for-designers.html">Read documentation for Designers</a>
</p>
</div>
</div>
</div>
</section>
<section id="adapters" class="bgc-light-gray pb-30 pt-80">
<div class="container">
<h2 class="mb-15">Adapters</h2>
<div class="row align-items-center">
<div class="col-xs-12 col-sm-7 col-md-6">
<p class="text-justify">
Dwoo offers adapters that help developers integrate it into web frameworks.<br><br>
Originally dwoo, offers adapters for web frameworks such as CakePHP, Zend Framework, Code
Igniter, Agavi and Yii.<br>
Since the version <strong>1.3.6</strong> a new adapter for Symfony is now available.
</p>
<p class="text-center">
<a class="btn btn-success" href="/integrations/">Show integrations adapters</a>
</p>
</div>
<div class="hidden-sm-down col-md-5 offset-md-1">
<img src="/assets/img/adapter.png" class="img-responsive">
</div>
</div>
</div>
</section>
</div>