Browse files

updated readme, tweaked run-tests script

  • Loading branch information...
1 parent 486b0fa commit 82f19b91d27faf7fe72642087ba19a67016c7f3a @arshaw committed Mar 28, 2010
Showing with 17 additions and 22 deletions.
  1. +16 −21 readme.mkd
  2. +1 −1 tests/run-tests
View
37 readme.mkd
@@ -1,27 +1,22 @@
-Template Inheritance in Straight PHP
-------------------------------------
+PHP Template Inheritance (PHPTI)
+================================
-From a child template, to inherit a parent template:
+Template Inheritance is an extremely useful technique for making reusable HTML
+layouts for a site. It is much more flexible than alternative techniques, such
+as "including" common elements of a page (like a header and footer file).
- include 'parent_template.php';
-
-Define a block:
+The concept has been around for a while, most notably in the
+[Django](http://www.djangoproject.com/) template engine. Unlike other libraries,
+*PHP Template Inheritance* lets you write everything in straight PHP. There is no
+need to learn another template language.
- <? startblock('blockname') ?>
- ...
- <? endblock() ?>
-
-Define an empty block:
+Links
+-----
- <? block('blockname') ?>
-
-Reference the overridden block:
+- For a tutorial on how to use this library, visit [phpti.com](http://phpti.com/)
+- For bugs, visit the [Issue Tracker](http://github.com/arshaw/phpti/issues)
+- For development, visit the [GitHub Project](http://github.com/arshaw/phpti)
+- Created by [Adam Shaw](http://arshaw.com/)
- <? startblock('footer') ?>
- <? superblock() ?> - Copyright 2009
- <? endblock() ?>
-
-more docs/examples to come...
-
-(works in PHP version >= 4.3)
+Released under the MIT License (license.txt)
View
2 tests/run-tests
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
cd "`dirname $0`"

0 comments on commit 82f19b9

Please sign in to comment.