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

TemplarPHP is a micro-framework for rapid website development. The core of the micro-framework implements a flexible, template stacking system. It separates presentation from content to create websites that are easy to maintain and standards complaint. Learn more about TemplarPHP from the documentation.

Features

  • No database required - Works without a database by default. Of course, a database can be used if desired.
  • Decoupled content - Content files are plain HTML or PHP—no framework-specific include statements, no special links and no hooks.
  • Smart page merging - Understands superset/subset relationships between DOCTYPEs, identifies unique head-tags, detects id collisions and adjusts output accordingly.
  • Content negotiation - Follows best practices to serve web pages in "strict mode" or "compatibility mode" where appropriate.
  • Cache header management - Derives appropriate "Last-Modified" and "ETag" headers from resource documents and controller scripts.
  • Custom error page support - Supports contextual error page schemes with ease for "File Not Found", "Forbidden", "Internal Server Error", etc.

Developer tools

  • Clean interface - Access template variables via PHP using simple object->property syntax (e.g., the {{title}} variable can be referenced using $content->title).
  • Extensible type system - Extend content types to include additional formats (ical, rss, csv, audio, images, etc.).
  • Content control - Control output and enforce standards compliance with file name and DOCTYPE restrictions.
  • Mobile support - Serve content for light-weight devices with built-in mobile device detection.
  • Maintenance mode - Limit access to specified areas of a website (with IP address exceptions) during maintenance.
  • Debug mode - Check behavior with debug-mode during template design.
  • Event logging - Monitor cascade and response behavior with in-page event logs.
  • Helpful error messages - Troubleshoot issues with descriptive error messages and suggestions.

For details on how TemplarPHP works, start with the Overview.

Powered by Google Project Hosting