aboutsummaryrefslogtreecommitdiff
path: root/testdata/onGet_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-01-06 02:54:52 +0700
committerShulhan <ms@kilabit.info>2025-01-07 00:13:55 +0700
commit85ae94f62b75372943a8ffdd705ce932a7849a8d (patch)
treeff55363d9e47729ce5d3c0be9fafa54d2cbd2e30 /testdata/onGet_test.txt
parent6593f4d2069790c73595f14b3312a8d83e61760e (diff)
downloadciigo-85ae94f62b75372943a8ffdd705ce932a7849a8d.tar.xz
all: auto convert markup when HTTP client request GET to HTML file
In development mode, where [ServeOptions.IsDevelopment] is set to true or when running "ciigo serve", the ciigo HTTP server will check if the new markup file is newer than HTML file when user press refresh or reload on the browser. If its newer, it will convert the markup file and return the new content of HTML file.
Diffstat (limited to 'testdata/onGet_test.txt')
-rw-r--r--testdata/onGet_test.txt99
1 files changed, 99 insertions, 0 deletions
diff --git a/testdata/onGet_test.txt b/testdata/onGet_test.txt
new file mode 100644
index 0000000..048ac37
--- /dev/null
+++ b/testdata/onGet_test.txt
@@ -0,0 +1,99 @@
+
+>>> one.adoc
+= One
+
+<<< one.html
+<div id="header">
+<h1>One</h1>
+</div>
+<div id="content">
+</div>
+<div id="footer">
+<div id="footer-text">
+[REDACTED]
+</div>
+</div>
+
+>>> two.md
+# Two
+
+<<< two.html
+<h1>Two</h1>
+
+
+
+>>> three.html
+<html>
+</html>
+
+<<< three.html
+<html>
+</html>
+
+>>> three.adoc
+= Three
+
+<<< new_three.html
+<div id="header">
+<h1>Three</h1>
+</div>
+<div id="content">
+</div>
+<div id="footer">
+<div id="footer-text">
+[REDACTED]
+</div>
+</div>
+
+>>> update_one.adoc
+= One
+
+Updated.
+
+<<< update_one.html
+<div id="header">
+<h1>One</h1>
+</div>
+<div id="content">
+<div class="paragraph">
+<p>Updated.</p>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+[REDACTED]
+</div>
+</div>
+
+
+>>> /journal/index.adoc
+= Journal
+
+Hello world!
+
+<<< /journal/index.html
+<div id="header">
+<h1>Journal</h1>
+</div>
+<div id="content">
+<div class="paragraph">
+<p>Hello world!</p>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+[REDACTED]
+</div>
+</div>
+
+>>> /journal2/index.adoc
+= Journal 2
+
+Hello world!
+
+<<< /journal2/index.html
+<a href="/journal2/">Found</a>.
+
+
+
+>>> END