Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mardiros_fastlife /src /fastlife /domain /model /template.py
| """Inline templates.""" | |
| from typing import ClassVar | |
| from pydantic import BaseModel | |
| from pydantic.config import ConfigDict | |
| from fastlife.adapters.xcomponent.registry import DEFAULT_CATALOG_NS | |
| class InlineTemplate(BaseModel): | |
| """ | |
| Inline templates are used to encourage the location of behavior and the view typing. | |
| Pages produce templates that are not reusable and don't need to be reusable | |
| in there essence, they don't need to be in a component library. | |
| They use a component lirary to stay small but contains a view logic | |
| tighly coupled with the view and its code can stay in the same module of that view. | |
| """ | |
| model_config = ConfigDict(arbitrary_types_allowed=True) | |
| template: ClassVar[str] | |
| """The template string to render.""" | |
| class XTemplate(InlineTemplate): | |
| """Template that render XComponent""" | |
| namespace: ClassVar[str] = DEFAULT_CATALOG_NS | |
Xet Storage Details
- Size:
- 902 Bytes
- Xet hash:
- 48b2b5a39794184f817c970fb9d973974ce0d2d21d8848872553c24af23eb3f6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.