rattlepy.utilsモジュール : Rattle.py APIリファレンス

Utility functions for making html more easily.

rattlepy.utils.createHeader(title, *metas)

Create head element. Usage:

with createHeader(
  "Page Title",
  {"charset": "utf-8"}):
    ...

This function equals to the code:

with head():
  for m in [{"charset": "utf-8"}]:
    meta(**m)
  setTitle("Page Title")
rattlepy.utils.scaffold(header: rattlepy.templating.Element)

Create html scaffold. This feature is under experimental.