Document (System Node)
The Document system node is a globally available object that holds details about the current page.
LiteCart 2.x
document::$snippets['title'][] = 'Added Page Title';
document::$snippets['head_tags'][] = '';
document::$snippets['foot_tags'][] = '';
document::$snippets['style'][] = 'strong { font-weight: 700; }';
document::$snippets['javascript'][] = 'alert("Hi");';
document::$snippets['description'] = 'Added page description';
document::$head_tags['canonical'] = '<link rel="canonical" href="'. document::href_ilink('page') .'">';
LiteCart 3.x
document::$title[] = 'Added Page Title';
document::$head_tags[] = '';
document::$foot_tags[] = '';
document::$style[] = 'strong { font-weight: 700; }';
document::$javascript[] = 'alert("Hi");';
document::$description = 'Added page description';
document::$canonical = document::href_ilink('page');