mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
* Add Bootstrap Extension * Rename main.yml * Artifact Upload * Fix Bootstrap Reference Error * BootstrapTreeProcessor * getiterator removed * keys function * Style Images * Update docs_build.yml * Added Meta Files * Template Get * Fix Page Ref * Update BASE_URL * Sort Schemas * Add Sitemaps * Add favicons, open-graph, and setup guide * Update Setup.md * Update .gitignore * Update Setup.md * Use _blank on external links * Restructured Docs * Fix Links * Added XML Schemas * Name XML Schemas * Improved Best Practices * Add Logs For Static Files * Make docs build happen on PR
19 lines
430 B
Python
19 lines
430 B
Python
from jinja2 import Environment
|
|
|
|
from lib.Content.AbstractItem import AbstractItem, MinifyMixin
|
|
|
|
|
|
class MetaItem(AbstractItem):
|
|
|
|
@classmethod
|
|
def initialize(cls, env: Environment) -> list:
|
|
cls.env = env
|
|
|
|
def render(self, **context) -> str:
|
|
template = self.env.get_template(str(self.in_path.as_posix()))
|
|
return template.render(**context)
|
|
|
|
|
|
class MinifiedMetaItem(MinifyMixin, MetaItem):
|
|
pass
|