gilbert.content module¶
Content object classes
- class gilbert.content.Content(name, site, data=None, meta=None)¶
Bases:
SchemaBase content class.
- property content: str¶
- content_type: str¶
- classmethod create(name, site, data, meta)¶
Create a new Content instance.
Will extract the content type from the meta, and create the appropriate sub-class.
- tags: Collection[str]¶
- class gilbert.content.Page(name, site, data=None, meta=None)¶
-
A templated Page content type.
- class gilbert.content.Raw(name, site, data=None, meta=None)¶
Bases:
ContentContainer for ‘raw’ data.
Unlike other content types, does not hold its data - only the path to the source. Upon render, it copies the source file directly to the target.
- path: Path¶
- render()¶