diff --git a/src/config.py b/src/config.py
index a1b2933..8ca60a4 100644
--- a/src/config.py
+++ b/src/config.py
@@ -4,8 +4,27 @@ from tomllib import loads
from .fileops import read_file
from .log import GRAY
-from .modules import Tree, Webview
+from .modules import Config, Tree, Webview
+def render_config(config:Config) -> str:
+ return f"""[project]
+name = "{config.project.name}"
+version = "{config.project.version}"
+description = "{config.project.description}"
+
+[tree]
+markdown = "{config.tree.markdown}"
+static = "{config.tree.static}"
+templates = "{config.tree.templates}"
+dest = "{config.tree.dest}"
+plugins = "{config.tree.plugins}"
+
+[webview]
+host = "{config.webview.host}"
+port = {config.webview.port}
+html_path = "{config.webview.html_path}"
+static_path = "{config.webview.static_path}"
+"""
def find_project_from_path(project_path: str):
if not path.exists(project_path):
diff --git a/src/init_project.py b/src/init_project.py
index aa1523d..06007f6 100644
--- a/src/init_project.py
+++ b/src/init_project.py
@@ -1,29 +1,12 @@
from os import path, getcwd, makedirs
+
from .modules import Config, Project, Tree, Webview
from .log import *
from .errors import fatal
from .templates import *
from .fileops import *
+from .config import render_config
-def render_config(config:Config) -> str:
- return f"""[project]
-name = "{config.project.name}"
-version = "{config.project.version}"
-description = "{config.project.description}"
-
-[tree]
-markdown = "{config.tree.markdown}"
-static = "{config.tree.static}"
-templates = "{config.tree.templates}"
-dest = "{config.tree.dest}"
-plugins = "{config.tree.plugins}"
-
-[webview]
-host = "{config.webview.host}"
-port = {config.webview.port}
-html_path = "{config.webview.html_path}"
-static_path = "{config.webview.static_path}"
-"""
def init_config_struct(project_name:str) -> Config:
"""Build a Config with default values for a newly initialized project."""