/** * Helper function that prints all the javascript templates * * @return void */ static function print_templates() { foreach (self::$templates as $key => $template) { echo "\n<script type='text/html' id='avia-tmpl-{$key}'>\n"; echo $template; echo "\n</script>\n\n"; } //reset the array self::$templates = array(); }