protected static function assembleTemplateVars($content)
    {
        $layoutTplVars = [
            'content'     => $content,
            'keywords'    => static::eWrap(static::$keywords, "<meta name='keywords' content='%s' />\n"),
            'title'       => static::eWrap(static::$title, "<title>%s</title>\n"),
            'description' => static::eWrap(static::$description, "<meta name='description' content='%s'/>\n"),
            'opengraph'   => static::assembleOpenGraph(),
            'css'         => static::concatWrapped(static::$css,
                '<link   type="text/css" rel="stylesheet" href="%s"/>' . "\n\t"),
            'javascript'  => static::concatWrapped(static::$js,
                '<script type="text/javascript" src="%s"></script>' . "\n\t"),
        ];

        // make js init code for all js managers
        if (count(static::$jsMgr)) {
            static::addJsTextOnReady(static::concatWrapped(static::$jsMgr, "  new %s_mgr();\n"));
        }

        if (static::$jsTextOnReady != '') {
            static::addJsText("$(document).ready(function(){\n" . static::$jsTextOnReady . '});');
        }

        $layoutTplVars['javascript'] .=
            static::concatWrapped(static::$jsText, "<script type=\"text/javascript\">%s</script>\n");

        return $layoutTplVars + static::$userVars;
    }