1: <?php
2: /**
3: * Pinoco: makes existing static web site dynamic transparently.
4: * Copyright 2010-2011, Hisateru Tanaka <tanakahisateru@gmail.com>
5: *
6: * Licensed under The MIT License
7: * Redistributions of files must retain the above copyright notice.
8: *
9: * PHP Version 5
10: *
11: * @author Hisateru Tanaka <tanakahisateru@gmail.com>
12: * @copyright Copyright 2010-2011, Hisateru Tanaka <tanakahisateru@gmail.com>
13: * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
14: * @package Pinoco
15: * @subpackage PAL
16: */
17:
18: if (!class_exists('PHPTAL')) { require_once 'PHPTAL.php'; }
19: if (!class_exists('PHPTAL_PreFilter')) { require_once 'PHPTAL/PreFilter.php'; }
20:
21: /**
22: * @package Pinoco
23: * @subpackage PAL
24: */
25: class Pinoco_PAL_NamespaceLoader extends PHPTAL_PreFilter
26: {
27: public function filter($data) {
28: require_once dirname(__FILE__) . '/Namespace.php';
29: return $data;
30: }
31: }
32:
33: