MCPcopy Create free account
hub / github.com/PageBot/PageBot / newTemplate

Function newTemplate

Lib/pagebot/elements/__init__.py:113–117  ·  view source on GitHub ↗

In most cases views are initialized as a dictionary by the Document class. But since they inherit from Element, they also can be used as placable elements.

(**kwargs)

Source from the content-addressed store, hash-verified

111 return Page(**kwargs)
112
113def newTemplate(**kwargs):
114 """In most cases views are initialized as a dictionary by the Document
115 class. But since they inherit from Element, they also can be used as
116 placable elements."""
117 return Template(**kwargs)
118
119def newPlacer(**kwargs):
120 """Placer occupying a space on Page or Template. Is not visible exported

Callers

nothing calls this directly

Calls 1

TemplateClass · 0.90

Tested by

no test coverage detected