aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lustre.gleam5
-rw-r--r--src/lustre/attribute.gleam20
-rw-r--r--src/lustre/effect.gleam5
-rw-r--r--src/lustre/element.gleam17
-rw-r--r--src/lustre/element/html.gleam6
-rw-r--r--src/lustre/element/svg.gleam6
-rw-r--r--src/lustre/event.gleam6
-rw-r--r--src/lustre/server_component.gleam12
8 files changed, 17 insertions, 60 deletions
diff --git a/src/lustre.gleam b/src/lustre.gleam
index ff4fcdd..31861f3 100644
--- a/src/lustre.gleam
+++ b/src/lustre.gleam
@@ -1,8 +1,3 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
//// Lustre is a framework for rendering Web applications and components using
//// Gleam. This module contains the core API for constructing and communicating
//// with Lustre applications. If you're new to Lustre or frontend development in
diff --git a/src/lustre/attribute.gleam b/src/lustre/attribute.gleam
index 70431a2..58f49dc 100644
--- a/src/lustre/attribute.gleam
+++ b/src/lustre/attribute.gleam
@@ -1,9 +1,3 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
-
// IMPORTS ---------------------------------------------------------------------
import gleam/dynamic.{type Decoder}
@@ -85,13 +79,13 @@ pub fn classes(names: List(#(String, Bool))) -> Attribute(msg) {
attribute(
"class",
names
- |> list.filter_map(fn(class) {
- case class.1 {
- True -> Ok(class.0)
- False -> Error(Nil)
- }
- })
- |> string.join(" "),
+ |> list.filter_map(fn(class) {
+ case class.1 {
+ True -> Ok(class.0)
+ False -> Error(Nil)
+ }
+ })
+ |> string.join(" "),
)
}
diff --git a/src/lustre/effect.gleam b/src/lustre/effect.gleam
index 53cd40b..b3c85ba 100644
--- a/src/lustre/effect.gleam
+++ b/src/lustre/effect.gleam
@@ -1,8 +1,3 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
//// In other frameworks it's common for components to perform side effects
//// whenever the need them. An event handler might make an HTTP request, or a
//// component might reach into the DOM to focus an input.
diff --git a/src/lustre/element.gleam b/src/lustre/element.gleam
index d02ccbb..5b8c9d6 100644
--- a/src/lustre/element.gleam
+++ b/src/lustre/element.gleam
@@ -1,8 +1,3 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
//// Lustre wouldn't be much use as a frontend framework if it didn't provide a
//// way to create HTML elements. This module contains the basic functions
//// necessary to construct and manipulate different HTML elements.
@@ -238,10 +233,10 @@ pub fn to_string(element: Element(msg)) -> String {
/// Converts an element to a string like [`to_string`](#to_string), but prepends
/// a `<!doctype html>` declaration to the string. This is useful for rendering
/// complete HTML documents.
-///
+///
/// If the provided element is not an `html` element, it will be wrapped in both
-/// a `html` and `body` element.
-///
+/// a `html` and `body` element.
+///
pub fn to_document_string(el: Element(msg)) -> String {
vdom.element_to_string(case el {
Element(tag: "html", ..) -> el
@@ -266,10 +261,10 @@ pub fn to_string_builder(element: Element(msg)) -> StringBuilder {
/// Converts an element to a `StringBuilder` like [`to_string_builder`](#to_string_builder),
/// but prepends a `<!doctype html>` declaration. This is useful for rendering
/// complete HTML documents.
-///
+///
/// If the provided element is not an `html` element, it will be wrapped in both
-/// a `html` and `body` element.
-///
+/// a `html` and `body` element.
+///
pub fn to_document_string_builder(el: Element(msg)) -> StringBuilder {
vdom.element_to_string_builder(case el {
Element(tag: "html", ..) -> el
diff --git a/src/lustre/element/html.gleam b/src/lustre/element/html.gleam
index d0d6d0b..e616c59 100644
--- a/src/lustre/element/html.gleam
+++ b/src/lustre/element/html.gleam
@@ -1,9 +1,3 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
-
// IMPORTS ---------------------------------------------------------------------
import lustre/element.{type Element, element, namespaced}
diff --git a/src/lustre/element/svg.gleam b/src/lustre/element/svg.gleam
index 8f68f53..1979c2a 100644
--- a/src/lustre/element/svg.gleam
+++ b/src/lustre/element/svg.gleam
@@ -1,9 +1,3 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
-
// IMPORTS ---------------------------------------------------------------------
import lustre/element.{type Element, namespaced, text as inline_text}
diff --git a/src/lustre/event.gleam b/src/lustre/event.gleam
index e8c8b0d..23e17a3 100644
--- a/src/lustre/event.gleam
+++ b/src/lustre/event.gleam
@@ -1,9 +1,3 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
-
// IMPORTS ---------------------------------------------------------------------
import gleam/dynamic.{type DecodeError, type Decoder, type Dynamic}
diff --git a/src/lustre/server_component.gleam b/src/lustre/server_component.gleam
index 363c662..e39e984 100644
--- a/src/lustre/server_component.gleam
+++ b/src/lustre/server_component.gleam
@@ -1,11 +1,7 @@
-//// > **Note**: this is a _release candidate_ for v4.0.0 and documentation is still
-//// > a work in progress. If you spot an issue with docs or the library, or would
-//// > like to get involved, please [open an issue](https://github.com/lustre-labs/lustre/issues/new)
-//// > or a pull request.
-////
-//// > **Note**: while Lustre v4 is in release candidate status, server components
-//// > **will not reliably work on Gleam's JavaScript target**. Until this message
-//// > goes away, consider server components as being supported **only** on Erlang.
+//// > **Note**: server components are currently only supported on the **erlang**
+//// > target. If it's important to you that they work on the javascript target,
+//// > [open an issue](https://github.com/lustre-labs/lustre/issues/new) and tell
+//// > us why it's important to you!
////
// IMPORTS ---------------------------------------------------------------------