diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-27 17:19:31 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-27 17:19:31 +0000 |
commit | afb57d6dbdeb1628d420411a41fdbbd479b6732f (patch) | |
tree | 7d057f44d5c9d5ffe6376542e102446cc4760fa8 /test/apps/static.gleam | |
parent | 5510116297d5da07269b776a0e30766e221569bd (diff) | |
download | lustre-afb57d6dbdeb1628d420411a41fdbbd479b6732f.tar.gz lustre-afb57d6dbdeb1628d420411a41fdbbd479b6732f.zip |
:alembic: Set up some basic snapshot tests.
Diffstat (limited to 'test/apps/static.gleam')
-rw-r--r-- | test/apps/static.gleam | 17 |
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")]), + ]), + ]) +} |