* @license GPL-3.0 * @copyright Barn2 Media Ltd */ interface Template_Loader { /** * Return the HTML for the specified template. * * @param string $template_name The template name (e.g. 'path/to/template.php') * @param array $args The template args. * @return string The template HTML. */ public function get_template( $template_name, array $args = [] ); /** * Echo (output) the HTML for the specified template. * * @param string $template_name The template name (e.g. 'path/to/template.php') * @param array $args The template args. */ public function load_template( $template_name, array $args = [] ); }