diff --git a/backend/apps/app_builder/app_builder.py b/backend/apps/app_builder/app_builder.py index 8989fc52..0dc1a454 100644 --- a/backend/apps/app_builder/app_builder.py +++ b/backend/apps/app_builder/app_builder.py @@ -17,7 +17,7 @@ from backend.apps.app_builder.App import ( ) from backend.config.paths import DB_ROOT from backend.apps.app_builder.executor import execute_backend_code -from backend.apps.app_builder.templates import APP_BUILDER_SKILL, APP_BUILDER_TEMPLATE_FILES +from backend.apps.app_builder.templates.templates import APP_BUILDER_SKILL, APP_BUILDER_TEMPLATE_FILES from backend.apps.app_builder.helpers import walk_directory APP_BUILDER_DIR = os.path.join(DB_ROOT, "app_builder") diff --git a/backend/apps/app_builder/app_builder_skill.md b/backend/apps/app_builder/templates/content/app_builder_skill.md similarity index 100% rename from backend/apps/app_builder/app_builder_skill.md rename to backend/apps/app_builder/templates/content/app_builder_skill.md diff --git a/backend/apps/app_builder/templates.py b/backend/apps/app_builder/templates/content/template_index.html similarity index 69% rename from backend/apps/app_builder/templates.py rename to backend/apps/app_builder/templates/content/template_index.html index 2eb288b9..c08b3b76 100644 --- a/backend/apps/app_builder/templates.py +++ b/backend/apps/app_builder/templates/content/template_index.html @@ -1,13 +1,3 @@ -"""Default template files seeded into new App Builder workspaces.""" - -import os - -_SKILL_PATH = os.path.join(os.path.dirname(__file__), "app_builder_skill.md") - -with open(_SKILL_PATH) as _f: - APP_BUILDER_SKILL = _f.read() - -APP_BUILDER_TEMPLATE_INDEX = """\
@@ -47,17 +37,4 @@ APP_BUILDER_TEMPLATE_INDEX = """\ - -""" - -APP_BUILDER_TEMPLATE_META = """\ -{ - "name": "", - "description": "" -} -""" - -APP_BUILDER_TEMPLATE_FILES = { - "index.html": APP_BUILDER_TEMPLATE_INDEX, - "meta.json": APP_BUILDER_TEMPLATE_META, -} +