1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-14 10:27:37 +01:00
PHP-Parser/test/PHPParser
nikic a048112e2c Add a filesystem template loader.
The template loaders loads templates from a base directory (and can
optionally use a suffix). For example

    $templateLoader = new PHPParser_TemplateLoader(
        $parser, './templates', '.php'
    );

    // loads ./templates/TestTemplate.php
    $templateLoader->load('TestTemplate');

Again the implementation is not optimal. The loader probably shouldn't
intantiate the Template itself, but instead should accept a
TemplateFactory. This seemed like overkill to me, so I left it out.
2012-04-03 23:52:00 +02:00
..
Tests Add a filesystem template loader. 2012-04-03 23:52:00 +02:00