]> git.seodisparate.com - c_simple_http/commitdiff
Add more example.config stuff
authorStephen Seo <seo.disparate@gmail.com>
Fri, 6 Sep 2024 03:42:18 +0000 (12:42 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 6 Sep 2024 03:42:18 +0000 (12:42 +0900)
example_config/example.config
example_config/inner.html [new file with mode: 0644]
example_config/var.html [new file with mode: 0644]

index 06a6fcb93794f301cbd338fb94d167df3b6ed637..4310212049ef40a1fb33b03b79c8d830f1d4e937 100644 (file)
@@ -1,6 +1,10 @@
 PATH=/
-HTML='''Test HTML
-{{{Var}}}
+HTML='''<h1>Test HTML</h1><br>
+<h2>{{{Var}}}</h2>
 '''
 
 Var='''Test var value'''
+
+PATH=/inner
+HTML_FILE='''example_config/inner.html'''
+VAR_FILE='''example_config/var.html'''
diff --git a/example_config/inner.html b/example_config/inner.html
new file mode 100644 (file)
index 0000000..61b80b8
--- /dev/null
@@ -0,0 +1,15 @@
+<html>
+<head>
+<style>
+body {
+color: #FFF;
+background-color: #333;
+}
+</style>
+</head>
+<body>
+<h1>Inner</h1>
+
+{{{VAR_FILE}}}
+</body>
+</html>
diff --git a/example_config/var.html b/example_config/var.html
new file mode 100644 (file)
index 0000000..f610a03
--- /dev/null
@@ -0,0 +1 @@
+<h2>Some other text.</h2>