Hey all,
Is it possible to render template or macro and get html output into a variable? I tried doing something like this:
But I only get empty string, no erros of any kind.
Thanks in advance
Is it possible to render template or macro and get html output into a variable? I tried doing something like this:
or$latest_posts = $this->app->templater()->renderMacro('public:modules_macros','latest_posts', $viewParams);
$latest_posts = $this->app->templater()->renderTemplate('latest_posts', $viewParams);
But I only get empty string, no erros of any kind.
Thanks in advance