1 / 8

Introducing cTemplate: A Fast and Simple PHP Templating Solution

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!

nitesh
Télécharger la présentation

Introducing cTemplate: A Fast and Simple PHP Templating Solution

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Google ctemplate php extension Vanilla Hsu <vanilla@FreeBSD.org>

  2. What’s php ctemplate extension? • It’s php binding for google ctemplate library. • Writen in c++ • Ultra fast. • Easy to use. • Template from string.

  3. Why ctemplate? • Simple • Speed • Smart • Easy to learn

  4. Why not Smarty? • Slow • Complicated • Should we put logic on template file?

  5. How to install? • Ports/textproc/pecl-ctemplate on FreeBSD • http://people.freebsd.org/~vanilla/cTemplate-0.8.tar.gz

  6. How to use? • 5 steps. • 1: new ctemplate object. • 2: new ctemplate_dict object. • 3: set variable • 4: expand • 5: print it out.

  7. Customer • Pixnet • You could be next.

  8. Question?

More Related