public function renderBadge($template)
    {
        $tpl = $this->getTwig()->createTemplate($template);

        return $tpl->render(['app' => Yii::$app]);
    }
public function renderBadge($template)
    {
        $tpl = $this->getTwig()->createTemplate($template);

        return $tpl->render(['app' => Yii::$app]);
    }
public function renderBadge ( $ template ) { $ tpl = $ this -> getTwig ( ) -> createTemplate ( $ template ) ; return $ tpl -> render ( [ 'app' => Yii :: $ app ] ) ; }
Render badge by given template.
@param string $template string to render
@return string
Render badge by given template .