Invenzzia »

Open Power Template

From Invenzzia wiki

Jump to: navigation, search

Open Power Template is a powerful XML-based template engine for PHP5. Contrary to many other template engines and PHP itself, OPT aims to provide declarative tools for presentation layer designers. It means that you do not have to worry, how all those things are supposed to work and co-operate with the script. You must only tell what you want to get and OPT will do the rest for you.

Contents

Articles

  1. Quickstart
  2. Securing the templates
  3. Understanding the data formats
  4. OPT Hacker's Guide
  5. OPT 1.x vs OPT 2.x - explaination
  6. How fast is Open Power Template?

Tips & tricks

  1. Custom escaping functions - how to prevent XSS attacks.
  2. JavaScript code escaping
  3. URL routing with OPT
  4. String concatenation in OPT
  5. Conditional comments for IE
  6. How to load templates from a database?
  7. How to display a default value, if the variable is not set?

OPT cookbook

  1. Dynamic CSS/JS loading
  2. Forms with OPT
  3. Nice navigation bar with OPT
  4. A photo gallery with OPT
  5. OPT and pagination

Development

  1. Roadmap
  2. Feature requests
  3. Writing test cases
  4. Projects that use Open Power Template
Personal tools