My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

Outline

Outline is a template engine for php.

Download the current release version from "featured downloads" on the right

Or click the "Source" tab to obtain the latest (unstable/development) version.

Notes about version 2.0

Version 2.0 development has been stalled for some time, but the engine itself is actually stable. There has been no official release, because the engine itself is not terribly useful stand-alone; version 2.0 was designed to integrate with third-party frameworks, and as such does not provide many of the features that made version 1 useful in plain PHP projects, where it worked not only as a template engine, but provided other view-engine features like caching and view/file-mapping. Development will resume when the need arises.

Please Donate

Unlike other template engines, Outline is fast and light by design - rather than trying to reinvent the wheel, this engine tries to leverage the power of the template engine you already know: php.

Outline templates, once compiled, execute nearly as fast as native php templates. The engine itself consists of a very tiny runtime, resulting in minimal CPU and memory overhead - benchmarks have shown that Outline is probably faster than any other native php template engine.

Project Goals

Outline implements a practical, familiar template syntax, in about 1000 lines of code, giving you close to all of the functionality found in major template engines such as Smarty, Template Lite or Savant - all of the usual stuff like commands, blocks, modifiers, inserts, compiled templates, multi-level caching and so on.

Key differences from other engines

The major difference between Outline and most of the major template engines, is that it makes no attempts to implement template security, and it does not validate the parts of the syntax that it borrows from php. This makes it primarily a template engine for use by php developers and trusted template developers - you can't safely allow guests to write or upload custom templates.

Apart from that, many commands have a considerably shorter syntax than most major template engines - and a syntax that is more familiar to php developers. Outline takes the practical, simple parts of php, simplifies their syntax, and combines it with the most common template syntax elements from large engines.

Powered by Google Project Hosting