about summary refs log tree commit diff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/fragment.htm3
-rw-r--r--testdata/meta.baseof.htm15
-rw-r--r--testdata/meta.nav.htm6
-rw-r--r--testdata/meta.tilde.foo.htm1
-rw-r--r--testdata/only-copy.html3
-rw-r--r--testdata/page.htm12
6 files changed, 40 insertions, 0 deletions
diff --git a/testdata/fragment.htm b/testdata/fragment.htm
new file mode 100644
index 0000000..94aaa3b
--- /dev/null
+++ b/testdata/fragment.htm
@@ -0,0 +1,3 @@
+<section>
+	hello world
+</section>
diff --git a/testdata/meta.baseof.htm b/testdata/meta.baseof.htm
new file mode 100644
index 0000000..bcfeec5
--- /dev/null
+++ b/testdata/meta.baseof.htm
@@ -0,0 +1,15 @@
+<html>
+	<head>
+		<title>site</title>
+	</head>
+	<body>
+		<header>
+			<nav>
+				{[/meta.nav]}
+			</nav>
+		</header>
+		<main>
+			{[builtin.fragment]}
+		</main>
+	</body>
+</html>
diff --git a/testdata/meta.nav.htm b/testdata/meta.nav.htm
new file mode 100644
index 0000000..bfdd4db
--- /dev/null
+++ b/testdata/meta.nav.htm
@@ -0,0 +1,6 @@
+<section>
+	<ul>
+		<li>{[page]}</li>
+		<li>{[fragment]}</li>
+	</ul>
+</section>
diff --git a/testdata/meta.tilde.foo.htm b/testdata/meta.tilde.foo.htm
new file mode 100644
index 0000000..b7f1369
--- /dev/null
+++ b/testdata/meta.tilde.foo.htm
@@ -0,0 +1 @@
+https://example.com
diff --git a/testdata/only-copy.html b/testdata/only-copy.html
new file mode 100644
index 0000000..94aaa3b
--- /dev/null
+++ b/testdata/only-copy.html
@@ -0,0 +1,3 @@
+<section>
+	hello world
+</section>
diff --git a/testdata/page.htm b/testdata/page.htm
new file mode 100644
index 0000000..c9c4613
--- /dev/null
+++ b/testdata/page.htm
@@ -0,0 +1,12 @@
+<html>
+	<head><title>page</title></head>
+	<body>
+		<section>
+			hello world
+		</section>
+		<ul>
+			<li>{[fragment]}</li>
+			<li><a href="{[$fragment]}">~ {[+fragment]}</a></li>
+		</ul>
+	</body>
+</html>