public function getTplPath(\Baguette\Application $app) : string { $is_ketai = $app->getViewMode() == $app::VIEW_MODE_KETAI; $prefix = $app->getViewMode() . '/'; $suffix = $is_ketai ? '.tpl.xhtml' : '.tpl.html'; return $prefix . $this->tpl_name . $suffix; }