#!/usr/bin/env php createRouting(new HttpRequest('::1', true, 'XX', '1.1', 'GET', '/', [], [], new HttpHeaders([ new HttpHeader('Host', $hostName), ]), null)); $msz->startTemplating(); $ctx = $msz->templating->load(implode(' ', array_slice($argv, $pathIndex))); foreach($tplArgs as $name => $value) $ctx->setVar($name, $value); // things expect this to be defined which is also a bit yucky if(!defined('MSZ_TPL_RENDER')) define('MSZ_TPL_RENDER', microtime(true)); echo $ctx->render();