gs.renderers.Renderer 渲染器配置基类#
Renderer 是 Genesis 框架中所有渲染器配置的基类。它不是一个实际的渲染器实现,而是一个配置类,用于指定要使用的渲染器类型及其相关参数。
- class genesis.options.renderers.Renderer[源代码]#
基类:
OptionsThis is the base class for all gs.renderers.* classes. Note that this is not an actual renderer, but rather a renderer configuration specifying which renderer to use and its parameters.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.