src/Theme.php
public function getTemplateHtml($partial)
    {
        $config = $this->getThemeConfig();
        // @todo add check here to make sure partial exists, if missing log error
        $filename = $this->getTemplateFolder().$config['templates'][$partial]['file'];

        $html = $this->getTemplateFile($filename, $this->getContextConfig());
        
        return $html;
    }
public function getTemplateHtml($partial)
    {
        $config = $this->getThemeConfig();
        // @todo add check here to make sure partial exists, if missing log error
        $filename = $this->getTemplateFolder().$config['templates'][$partial]['file'];

        $html = $this->getTemplateFile($filename, $this->getContextConfig());
        
        return $html;
    }
public function getTemplateHtml ( $ partial ) { $ config = $ this -> getThemeConfig ( ) ; // @todo add check here to make sure partial exists, if missing log error $ filename = $ this -> getTemplateFolder ( ) . $ config [ 'templates' ] [ $ partial ] [ 'file' ] ; $ html = $ this -> getTemplateFile ( $ filename , $ this -> getContextConfig ( ) ) ; return $ html ; }
Get template file populated by the config

@usage Partial render need to be declared in theme.json
e.g. get header/footer
@param string $partial
@return string html
Get template file populated by the config