public
Description: A beautiful template engine for PHP in Django style
Homepage: http://www.h2o-template.org
Clone URL: git://github.com/speedmax/h2o-php.git
Click here to lend your support to: h2o-php and make a donation at www.pledgie.com !
h2o-php / example
name age message
..
file README.md Fri Nov 21 15:45:57 -0800 2008 - Adding cache_prefix option and updated all ca... [speedmax]
directory caching/ Loading commit data...
directory extensions/
directory i18n/
directory inheritance/
directory simple/
example/README.md

H2o Template Examples

This directory contains example code covering various aspect of h2o template.

Simple

A simple template displaying a list of users, it demonstrate

  • how to setup h2o template and pass view variables to template
  • display variables and using build-in tags and filters
  • a basic template inheritance setup contains a layout template and page template

Show me

Inheritance

Shows example about how to use both template inheritance and inclusion.

Show me

Extensions

Demonstrate how to write and include custom tags, filters and loading extensions.

Show me

Caching

Demonstrates

  • how to use different cache driver
  • bundled cache extension to provide fragment cache to speed up resource intensive operations such as loading complex logic from database

I18n

Demo to show how to build a internationalized template with h2o by displaying a template supporting three languages.

I18n extension also bundled message extraction class to extract translatable strings into poedit friendly PO files.

Show me