mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
20 lines
581 B
Python
20 lines
581 B
Python
"""Default template files seeded into new App Builder workspaces."""
|
|
|
|
import os
|
|
from typing import Dict
|
|
from typeguard import typechecked
|
|
|
|
P_SELF_DIR = os.path.dirname(__file__)
|
|
P_CONTENT_DIR = os.path.join(P_SELF_DIR, "content")
|
|
|
|
@typechecked
|
|
def p_read(filename: str) -> str:
|
|
with open(os.path.join(P_CONTENT_DIR, filename), encoding="utf-8") as f:
|
|
return f.read()
|
|
|
|
APP_BUILDER_SKILL: str = p_read("app_builder_skill.md")
|
|
|
|
APP_BUILDER_TEMPLATE_FILES: Dict[str, str] = {
|
|
"index.html": p_read("template_index.html"),
|
|
"meta.json": p_read("template_meta.json"),
|
|
} |