Document

$class->document->getThemePath();
# /theme/blog

$class->document->getAssetsPath();
# /theme/blog/assets

$class->document->getAssetsPath("css/style.css",["color" => "fff"],true);
# /theme/blog/assets/css/style.css?color=fff&v=1537626034

$class->document->getAbsoluteLink("oem/amd.html");
# https://www.site.com/oem/amd.html
$class->document->useCSS("css/style.css","header");
# add to handle list for Header
$class->document->useJS("js/script.js","footer");
# add to handle list for Footer

$class->document->getUsedCss("header");
# <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" />
# <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
$class->document->getUsedJs("footer");
# <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.15/vue.min.js"></script>
# <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.js"></script>

$class->document->drawCss("css/style.css");
# <link rel="stylesheet" href="/theme/blog/assets/css/style.css" />
$class->document->drawCss("css/style.css",["color" => "fff"],true);
# <link rel="stylesheet" href="/theme/blog/assets/css/style.css?color=fff&v=1537626034" />
$class->document->drawJs("js/script.js",["auth" => "basic"],true);
# <link rel="stylesheet" href="/theme/blog/assets/js/script.js?auth=basic&v=1537626034" />

$class->document->useLibrary();
# add to handle List by CSS in "header" tag and by JS in "footer" tag all libraries
$class->document->useLibrary("fancybox.owl-carousel");
# add to handle List byCSS in "header" tag and by JS in "footer" tag fancybox and owl-carousel
$class->document->useLibrary(["fancybox","owl-carousel"]);
# add to handle List by CSS in "header" tag and by JS in "footer" tag fancybox and owl-carousel
/* They will come with  getUsedCss("header") and getUsedJs("footer") */

$class->document->useMeta("meta",["href" => "test"]);
# add to Handle List
$class->document->useMeta("meta",["href" => "test"],"robot");
# add to Handle List

$class->document->createMeta("meta",["href" => "test"]);
# -> <meta href="test" />
$class->document->createMeta("meta",["href" => "test"],"robot");
# -> <meta href="test">robot</meta>

$class->document->getUsedMeta( );
# return all added items from Handle List like Html Data
# -> <meta href="test" />
# -> <meta href="test">robot</meta>