summaryrefslogtreecommitdiff
path: root/README.markdown
blob: bfaa4ad30a86011113ff554c2ddcba9a0b887d80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Stupid Template Engine
======================

The Stupid Template Engine (STE) is a template engine for the PHP programming
language.

Requirements
------------

PHP >= 5.3

Why should you use it?
----------------------

* It's syntax (inspired by Textpattern's template syntax) is very easy and
  similar to the syntax of (X)HTML. So it should be easy for designers to learn
  this system.
* It has a simple, yet powerful plugin interface. You can easily define your
  own template functions / tags. It is even possible to write them in the
  template language itself, which makes it kind of a programming language...
* It can transcompile templates into PHP.
* You can use anonymous functions to define custom tags.

Annoying things.
----------------

* The error messages the parser returns, when your template has errors, are not
  very helpful, i.e. the position of the error is not returned. You have to seek
  it yourself.
* No caching. Could be slow on websites with many hits.

WARNING
-------

Early development, that means that it might be pretty buggy at the moment...