80 likes | 196 Vues
cTemplate is a PHP binding for the Google cTemplate library, written in C++. Known for its ultra-fast performance and ease of use, cTemplate allows you to create templates from strings effortlessly. Unlike other templating engines like Smarty, cTemplate offers a straightforward approach without the complexity and slow execution time. Installation is simple via FreeBSD ports. With just five easy steps to use, including creating ctemplate and ctemplate_dict objects, setting variables, expanding, and printing output, you'll be ready to enhance your web projects in no time!
E N D
Google ctemplate php extension Vanilla Hsu <vanilla@FreeBSD.org>
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/cTemplate-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.