1<?php
2/**
3 * PHPTAL templating engine
4 *
5 * PHP Version 5
6 *
7 * @category HTML
8 * @package  PHPTAL
9 * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10 * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11 * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12 * @version  SVN: $Id$
13 * @link     http://phptal.org/
14 */
15
16/**
17 * Objects passed to PHPTAL::setPre/PostFilter() must implement this interface
18 *
19 * @package PHPTAL
20 */
21interface PHPTAL_Filter
22{
23    /**
24     * In prefilter it gets template source file and is expected to return new source.
25     * Prefilters are called only once before template is compiled, so they can be slow.
26     *
27     * In postfilter template output is passed to this method, and final output goes to the browser.
28     * TAL or PHP tags won't be executed. Postfilters should be fast.
29     */
30    public function filter($str);
31}
32
33