'workdir' => __DIR__ . '/../repos/work/',
'tpl' => __DIR__ . '/templates/',
'css' => 'http://twitter.github.com/bootstrap/assets/css/bootstrap.css',
+ 'title' => 'phorkie',
);
$GLOBALS['phorkie']['tools'] = array(
'\\phorkie\\Tool_Xmllint' => true,
<head>
<link rel="stylesheet" href="{{css}}"/>
<link rel="stylesheet" href="/phorkie.css" />
- <title>{% block title %}{% endblock %} - phorkie</title>
+ <title>{% block title %}{% endblock %} - {{title}}</title>
<script src="/jquery-1.7.2.min.js"></script>
<script src="/phorkie.js"></script>
</head>
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/">
- phorkie
+ {{title}}
</a>
<ul class="nav">
<li>
function render($tplname, $vars)
{
$vars['css'] = $GLOBALS['phorkie']['cfg']['css'];
+ $vars['title'] = $GLOBALS['phorkie']['cfg']['title'];
+
$template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');
echo $template->render($vars);
}