aboutsummaryrefslogtreecommitdiff
path: root/test/apps/static.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'test/apps/static.gleam')
-rw-r--r--test/apps/static.gleam17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/apps/static.gleam b/test/apps/static.gleam
new file mode 100644
index 0000000..d41964a
--- /dev/null
+++ b/test/apps/static.gleam
@@ -0,0 +1,17 @@
+// IMPORTS ---------------------------------------------------------------------
+
+import lustre/attribute.{src}
+import lustre/element.{text}
+import lustre/element/html.{body, h1, head, html, img, title}
+
+// VIEW ------------------------------------------------------------------------
+
+pub fn view() {
+ html([], [
+ head([], [title([], "Hello, World!")]),
+ body([], [
+ h1([], [text("Hello, World!")]),
+ img([src("https://source.unsplash.com/random")]),
+ ]),
+ ])
+}