aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-09-12 18:39:57 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-09-12 18:39:57 +0100
commit30a3b8bfabc24b4cc7f5e658e13dec038865dcd1 (patch)
tree05de331cee781a5c3ab7ec5ff09e50c8c84aafbe
parent9dd0d52cb53cdc86dbac9604c366d62d58c7a85e (diff)
downloadlustre-30a3b8bfabc24b4cc7f5e658e13dec038865dcd1.tar.gz
lustre-30a3b8bfabc24b4cc7f5e658e13dec038865dcd1.zip
:bug: Fixed a bug where the head element didn't accept children.
-rw-r--r--lib/src/lustre/element/html.gleam7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/src/lustre/element/html.gleam b/lib/src/lustre/element/html.gleam
index 70ec6c6..a69a5fd 100644
--- a/lib/src/lustre/element/html.gleam
+++ b/lib/src/lustre/element/html.gleam
@@ -24,8 +24,11 @@ pub fn base(attrs: List(Attribute(msg))) -> Element(msg) {
}
///
-pub fn head(attrs: List(Attribute(msg))) -> Element(msg) {
- element("head", attrs, [])
+pub fn head(
+ attrs: List(Attribute(msg)),
+ children: List(Element(msg)),
+) -> Element(msg) {
+ element("head", attrs, children)
}
///