Skip to content

Commit 78589b2

Browse files
committed
More explanations.
1 parent d5d2393 commit 78589b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
#CakePan
22

3-
CakePan is a CakePHP view helper that renders Mustache templates.
3+
CakePan is a CakePHP view helper that renders Mustache templates. It will also load and process sub-templates!
44

5-
It will load and render sub-templates as well
5+
### Why use Mustache templates in CakePHP?
6+
<strong>Portability and scalability!</strong> If you have an app that uses lots of front-end coding, you only have to write your templates once. Mustache templates can be rendered in PHP, Javascript, Ruby, Scala, even C++! If you want to move to or from some other framework (Rails, Grails, Lithium etc.), you can be sure that your views and design won't have to be re-built.
7+
8+
For scalability, when the time comes, you can use templates with a more powerful engine like Scala, or just send JSON from any source, and render with Javascript.
69

710
## Use
811

912
### install
10-
First - make afolder called 'mustache' in your app/vendors folder. Add the Mustache PHP library to your app/vendor folder. from https://github.com/bobthecow/mustache.php/
13+
First - make afolder called 'mustache' in your vendors folder. Add the Mustache PHP library to your app/vendor folder. from https://github.com/bobthecow/mustache.php/
1114

1215
Then, place this helper out into the app/views/helpers folder of your CakePHP project.
1316

0 commit comments

Comments
 (0)