src/UI/HandleBars.php
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");
    }
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");
    }
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" ) ; }
templateInclude - Include a handlebars template, dealing with i18n

This is a normal handlebars template except we can ask for a translation
of text as follows:

...
{{__ 'Hello world' }}
...

The i18n replacement will be handled in the server in the template.  Single
or Double quotes can be used.
templateInclude - Include a handlebars template dealing with i18n