public static function templateInclude($name) {
        if ( is_array($name) ) {
            foreach($name as $n) {
                self::templateInclude($n);
            }
            return;
        }
        echo('<script id="script-template-'.$name.'" type="text/x-handlebars-template">'."\n");
        $template = file_get_contents('templates/'.$name.'.hbs');
        echo(self::templateProcess($template));
        echo("</script>\n");
    }