Documentation

Install template engines


Install template engines

The Views class let you the freedom to use your favorite template engine.

This operation could be complex, but we can help you in this:

  • copy your template engine directory to library/View/, for example MyTemplateEngine.
  • create the interface class es MyTemplateEngine_View, as
    class MyTemplateEngine_view extends MyTemplateEngine{}
  • bind the methods assign, draw and is_cached to MyTemplateEngine class.

Now you can configure View to loads your template class.