Google ctemplate php extension Vanilla Hsu <>
Download
Report
Transcript Google ctemplate php extension Vanilla Hsu <>
Google ctemplate
php extension
Vanilla Hsu
<[email protected]>
What’s php ctemplate extension?
It’s php binding for google ctemplate
library.
Writen in c++
Ultra fast.
Easy to use.
Template from string.
Why ctemplate?
Simple
Speed
Smart
Easy to learn
Why not Smarty?
Slow
Complicated
Should we put logic on template file?
How to install?
Ports/textproc/pecl-ctemplate on
FreeBSD
http://people.freebsd.org/~vanilla/cTempl
ate-0.8.tar.gz
How to use?
5 steps.
1: new ctemplate object.
2: new ctemplate_dict object.
3: set variable
4: expand
5: print it out.
Customer
Pixnet
You could be next.
Question?