rendered paste bodyfolderstructure
repo
sources
specs
templates_c
template
index.tpl
index.php
Smarty.class.php
specFileParser.class.php
index.php:
<?php
/**
* Reads specs folder and prints infos about packages
*
* @author Nicolas Christener <christener@gmail.com>
* @copyright Nicolas Christener, 2007
* @license GPL
* @version 0.1
*/
/**
* Initialize some smarty stuff
*/
require_once('Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = 'template/';
$smarty->compile_dir = 'templates_c';
$smarty->caching = false;
/**
* Initialize the parser object
*/
require_once('specFileParser.class.php');
$mySpecFileParser = new specFileParser('specs/');
$specInfos = $mySpecFileParser->getSpecInfos();
$smarty->assign('specInfos', $specInfos);
$smarty->display('index.tpl');