diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2022-05-21 13:46:58 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2022-05-21 13:46:58 +0100 |
commit | 302a371e3667c2e7e40557ccaf9501863d25205b (patch) | |
tree | 32f5c522f00c4ecf29b42c7764f210915c27b53b | |
parent | 6f774e27a1a1d2503e5da4a50a3d306abc55ce6b (diff) | |
download | lustre-302a371e3667c2e7e40557ccaf9501863d25205b.tar.gz lustre-302a371e3667c2e7e40557ccaf9501863d25205b.zip |
:rocket: Deploy docs to GitHub Pages.
-rw-r--r-- | docs/index.html | 12 | ||||
-rw-r--r-- | docs/lustre.html | 220 | ||||
-rw-r--r-- | docs/lustre/attribute.html | 135 | ||||
-rw-r--r-- | docs/lustre/cmd.html | 30 | ||||
-rw-r--r-- | docs/lustre/element.html | 360 | ||||
-rw-r--r-- | docs/lustre/event.html | 63 |
6 files changed, 771 insertions, 49 deletions
diff --git a/docs/index.html b/docs/index.html index ff58606..f5fda5e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -140,13 +140,13 @@ <h2> <a href="./">lustre</a> <span id="project-version"> - <span> - v0.1.0 </span> + <span> - v1.0.0 </span> </span> <script> "use strict"; if ("undefined" !== typeof versionNodes) { - const currentVersion = "v0.1.0"; + const currentVersion = "v1.0.0"; if (! versionNodes.find(element => element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } @@ -192,6 +192,14 @@ + <h2>Links</h2> + <ul> + + <li><a href="https://hayleigh-dot-dev.github.io/gleam-lustre">Website</a></li> + + <li><a href="https://github.com/hayleigh-dot-dev/gleam-lustre">Repository</a></li> + + </ul> <h2>Modules</h2> diff --git a/docs/lustre.html b/docs/lustre.html index 5bd99b1..d0bbc53 100644 --- a/docs/lustre.html +++ b/docs/lustre.html @@ -140,13 +140,13 @@ <h2> <a href="./">lustre</a> <span id="project-version"> - <span> - v0.1.0 </span> + <span> - v1.0.0 </span> </span> <script> "use strict"; if ("undefined" !== typeof versionNodes) { - const currentVersion = "v0.1.0"; + const currentVersion = "v1.0.0"; if (! versionNodes.find(element => element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } @@ -192,6 +192,14 @@ + <h2>Links</h2> + <ul> + + <li><a href="https://hayleigh-dot-dev.github.io/gleam-lustre">Website</a></li> + + <li><a href="https://github.com/hayleigh-dot-dev/gleam-lustre">Repository</a></li> + + </ul> <h2>Modules</h2> @@ -230,7 +238,9 @@ <li><a href="#application">application</a></li> - <li><a href="#basic">basic</a></li> + <li><a href="#element">element</a></li> + + <li><a href="#simple">simple</a></li> <li><a href="#start">start</a></li> @@ -245,6 +255,7 @@ <a href="#module-name">lustre</a> <svg class="icon icon-gleam-chasse"><use xlink:href="#icon-gleam-chasse"></use></svg> </h1> +<p>Lustre is a declarative framework for building Web apps in Gleam. </p> @@ -263,6 +274,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre.gleam#L54-L54"> + </> + </a> </div> <div class="custom-type-constructors"> @@ -274,30 +288,31 @@ do with an <code>App</code> is pass it to <a href="#start"><code>start</code></a anything but <a href="#start"><code>start</code></a> them, the constructors are separated in case you want to set up an application but defer starting it until some later point in time.</p> -<pre><code> ┌────────┐ - │ │ - │ update │ - │ │ - └──────┬─┘ - ▲ │ - │ │ #(State, Action) - Action │ │ - │ │ - │ ▼ - ┌──────┐ ┌─────────┴──────────────┐ - │ │ #(State, Action) │ │ - │ init ├───────────────────►│ Lustre Runtime │ - │ │ │ │ - └──────┘ └──────────────┬─────────┘ - ▲ │ - │ │ State - Action │ │ - │ ▼ - ┌─┴──────┐ - │ │ - │ render │ - │ │ - └────────┘ +<pre><code> +--------+ + | | + | update | + | | + +--------+ + ^ | + | | + Action | | #(State, Action) + | | + | v + +------+ +------------------------+ + | | #(State, Action) | | + | init |------------------->| Lustre Runtime | + | | | | + +------+ +------------------------+ + ^ | + | | + Action | | State + | | + | v + +--------+ + | | + | render | + | | + +--------+ </code></pre> <p><small>Someone please PR the Gleam docs generator to fix the monospace font, thanks! 💖</small></p> @@ -316,6 +331,9 @@ thanks! 💖</small></p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre.gleam#L62-L62"> + </> + </a> </div> <div class="custom-type-constructors"> @@ -369,36 +387,146 @@ thanks! 💖</small></p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre.gleam#L199-L199"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn application(init: #(a, Cmd(b)), update: fn(a, b) -> #(a, Cmd(b)), render: fn(a) -> Element(b)) -> App(a, b)</code></pre> - <div class="rendered-markdown"><p>Create a more complex application mimicing TEA – the Elm architecture. We -start with some initial <code>state</code>, a function to update that state, and then -a render function to derive our app’s view from that state.</p> -<p>Events produced by elements are passed a <code>dispatch</code> function that can be -used to emit actions that trigger your <code>update</code> function to be called and -trigger a rerender.</p> + <div class="rendered-markdown"><p>An evolution of a <a href="#simple"><code>simple</code></a> app that allows you to return a +<a href="./lustre/cmd.html#Cmd"><code>Cmd</code></a> from your <code>init</code> and <code>update</code>s. Commands give +us a way to perform side effects like sending an HTTP request or running a +timer and then dispatch actions back to the runtime to trigger an <code>update</code>.</p> +<pre><code>import lustre +import lustre/cmd +import lustre/element + +pub fn main () { + let init = #(0, tick()) + let update = fn (state, action) { + case action { + Tick -> #(state + 1, tick()) + } + } + let render = fn (state) { + element.div([], [ + element.text("Count is: ") + element.text(state |> int.to_string |> element.text) + ]) + } + + let app = lustre.simple(init, update, render) + lustre.start(app, "#root") +} + +fn tick () -> Cmd(Action) { + cmd.from(fn (dispatch) { + setInterval(fn () { + dispatch(Tick) + }, 1000) + }) +} + +external fn set_timeout (f: fn () -> a, delay: Int) -> Nil + = "" "window.setTimeout" +</code></pre> </div> </div> <div class="member"> <div class="member-name"> - <h2 id="basic"> - <a href="#basic"> - basic + <h2 id="element"> + <a href="#element"> + element </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre.gleam#L101-L101"> + </> + </a> </div> - <pre><code class="hljs gleam">pub fn basic(element: Element(a)) -> App(Nil, a)</code></pre> + <pre><code class="hljs gleam">pub fn element(element: Element(a)) -> App(Nil, a)</code></pre> <div class="rendered-markdown"><p>Create a basic lustre app that just renders some element on the page. Note that this doesn’t mean the content is static! With <code>element.stateful</code> you can still create components with local state.</p> <p>Basic lustre apps don’t have any <em>global</em> application state and so the -plumbing is a lot simpler. If you find yourself passing lot’s state of state -around, you might want to consider using <code>application</code> instead.</p> +plumbing is a lot simpler. If you find yourself passing lots of state around, +you might want to consider using <a href="#simple"><code>simple</code></a> or <a href="#application"><code>application</code></a> +instead.</p> +<pre><code class="language-gleam">import lustre +import lustre/element + +pub fn main () { + let app = lustre.element( + element.h1([], [ + element.text("Hello, world!") + ]) + ) + + lustre.start(app, "#root") +} +</code></pre> +</div> + </div> + + <div class="member"> + <div class="member-name"> + <h2 id="simple"> + <a href="#simple"> + simple + </a> + </h2> + + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre.gleam#L153-L153"> + </> + </a> + + </div> + <pre><code class="hljs gleam">pub fn simple(init: a, update: fn(a, b) -> a, render: fn(a) -> + Element(b)) -> App(a, b)</code></pre> + <div class="rendered-markdown"><p>If you start off with a simple <code>[element</code>](#element) app, you may find +yourself leaning on <a href="./lustrel/element.html#stateful"><code>stateful</code></a> elements +to manage state used throughout your app. If that’s the case or if you know +you need some global state from the get-go, you might want to construct a +<a href="#simple"><code>simple</code></a> app instead.</p> +<p>This is one app constructor that allows your HTML elements to dispatch actions +to update your program state. </p> +<pre><code>import gleam/int +import lustre +import lustre/element +import lustre/event.{ dispatch } + +type Action { + Incr + Decr +} + +pub fn main () { + let init = 0 + let update = fn (state, action) { + case action { + Incr -> state + 1 + Decr -> state - 1 + } + } + let render = fn (state) { + element.div([], [ + element.button([ event.on_click(dispatch(Decr)) ], [ + element.text("-") + ]), + element.text(state |> int.to_string |> element.text), + element.button([ event.on_click(dispatch(Incr)) ], [ + element.text("+") + ]) + ]) + } + + let app = lustre.simple(init, update, render) + lustre.start(app, "#root") +} +</code></pre> </div> </div> @@ -410,6 +538,9 @@ around, you might want to consider using <code>application</code> instead.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre.gleam#L226-L226"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn start(app: App(a, b), selector: String) -> Result( @@ -421,6 +552,17 @@ need to actually start it! This function will mount your app to the DOM node that matches the query selector you provide.</p> <p>If everything mounted OK, we’ll get back a dispatch function that you can call to send actions to your app and trigger an update. </p> +<pre><code>import lustre + +pub fn main () { + let app = lustre.appliation(init, update, render) + assert Ok(dispatch) = lustre.start(app, "#root") + + dispatch(Incr) + dispatch(Incr) + dispatch(Incr) +} +</code></pre> </div> </div> diff --git a/docs/lustre/attribute.html b/docs/lustre/attribute.html index cebc46d..0fd6856 100644 --- a/docs/lustre/attribute.html +++ b/docs/lustre/attribute.html @@ -140,13 +140,13 @@ <h2> <a href="../">lustre</a> <span id="project-version"> - <span> - v0.1.0 </span> + <span> - v1.0.0 </span> </span> <script> "use strict"; if ("undefined" !== typeof versionNodes) { - const currentVersion = "v0.1.0"; + const currentVersion = "v1.0.0"; if (! versionNodes.find(element => element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } @@ -192,6 +192,14 @@ + <h2>Links</h2> + <ul> + + <li><a href="https://hayleigh-dot-dev.github.io/gleam-lustre">Website</a></li> + + <li><a href="https://github.com/hayleigh-dot-dev/gleam-lustre">Repository</a></li> + + </ul> <h2>Modules</h2> @@ -335,6 +343,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L12-L12"> + </> + </a> </div> <div class="custom-type-constructors"> @@ -366,6 +377,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L95-L95"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn accept(types: List(String)) -> Attribute(a)</code></pre> @@ -380,6 +394,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L100-L100"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn accept_charset(types: List(String)) -> Attribute(a)</code></pre> @@ -394,6 +411,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L105-L105"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn action(uri: String) -> Attribute(a)</code></pre> @@ -408,6 +428,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L223-L223"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn alt(text: String) -> Attribute(a)</code></pre> @@ -422,6 +445,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L21-L21"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn attribute(name: String, value: String) -> Attribute(a)</code></pre> @@ -436,6 +462,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L110-L110"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn autocomplete(should_autocomplete: Bool) -> Attribute(a)</code></pre> @@ -450,6 +479,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L115-L115"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn autofocus(should_autofocus: Bool) -> Attribute(a)</code></pre> @@ -464,6 +496,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L230-L230"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn autoplay(should_autoplay: Bool) -> Attribute(a)</code></pre> @@ -478,6 +513,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L78-L78"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn checked(is_checked: Bool) -> Attribute(a)</code></pre> @@ -492,6 +530,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L46-L46"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn class(name: String) -> Attribute(a)</code></pre> @@ -506,6 +547,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L51-L51"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn classes(names: List(#(String, Bool))) -> Attribute(a)</code></pre> @@ -520,6 +564,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L169-L169"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn cols(val: Int) -> Attribute(a)</code></pre> @@ -534,6 +581,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L235-L235"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn controls(visible: Bool) -> Attribute(a)</code></pre> @@ -548,6 +598,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L120-L120"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn disabled(is_disabled: Bool) -> Attribute(a)</code></pre> @@ -562,6 +615,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L196-L196"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn download(filename: String) -> Attribute(a)</code></pre> @@ -576,6 +632,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L31-L31"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn event(name: String, handler: fn(Dynamic, fn(a) -> Nil) -> @@ -591,6 +650,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L145-L145"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn for(id: String) -> Attribute(a)</code></pre> @@ -605,6 +667,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L213-L213"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn height(val: Int) -> Attribute(a)</code></pre> @@ -619,6 +684,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L186-L186"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn href(uri: String) -> Attribute(a)</code></pre> @@ -633,6 +701,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L61-L61"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn id(name: String) -> Attribute(a)</code></pre> @@ -647,6 +718,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L240-L240"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn loop(should_loop: Bool) -> Attribute(a)</code></pre> @@ -661,6 +735,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L152-L152"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn max(val: String) -> Attribute(a)</code></pre> @@ -675,6 +752,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L157-L157"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn min(val: String) -> Attribute(a)</code></pre> @@ -689,6 +769,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L125-L125"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn name(name: String) -> Attribute(a)</code></pre> @@ -703,6 +786,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L130-L130"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn pattern(regex: String) -> Attribute(a)</code></pre> @@ -717,6 +803,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L83-L83"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn placeholder(text: String) -> Attribute(a)</code></pre> @@ -731,6 +820,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L26-L26"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn property(name: String, value: Dynamic) -> Attribute(a)</code></pre> @@ -745,6 +837,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L135-L135"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn readonly(is_readonly: Bool) -> Attribute(a)</code></pre> @@ -759,6 +854,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L201-L201"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn rel(relationship: String) -> Attribute(a)</code></pre> @@ -773,6 +871,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L140-L140"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn require(is_required: Bool) -> Attribute(a)</code></pre> @@ -787,6 +888,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L174-L174"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn rows(val: Int) -> Attribute(a)</code></pre> @@ -801,6 +905,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L88-L88"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn selected(is_selected: Bool) -> Attribute(a)</code></pre> @@ -815,6 +922,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L208-L208"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn src(uri: String) -> Attribute(a)</code></pre> @@ -829,6 +939,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L162-L162"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn step(val: String) -> Attribute(a)</code></pre> @@ -843,6 +956,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L38-L38"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn style(properties: List(#(String, String))) -> Attribute(a)</code></pre> @@ -857,6 +973,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L191-L191"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn target(target: String) -> Attribute(a)</code></pre> @@ -871,6 +990,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L68-L68"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn type_(name: String) -> Attribute(a)</code></pre> @@ -885,6 +1007,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L73-L73"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn value(val: Dynamic) -> Attribute(a)</code></pre> @@ -899,6 +1024,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L218-L218"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn width(val: Int) -> Attribute(a)</code></pre> @@ -913,6 +1041,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/attribute.gleam#L179-L179"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn wrap(mode: String) -> Attribute(a)</code></pre> diff --git a/docs/lustre/cmd.html b/docs/lustre/cmd.html index 5f5220a..a89fbe8 100644 --- a/docs/lustre/cmd.html +++ b/docs/lustre/cmd.html @@ -140,13 +140,13 @@ <h2> <a href="../">lustre</a> <span id="project-version"> - <span> - v0.1.0 </span> + <span> - v1.0.0 </span> </span> <script> "use strict"; if ("undefined" !== typeof versionNodes) { - const currentVersion = "v0.1.0"; + const currentVersion = "v1.0.0"; if (! versionNodes.find(element => element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } @@ -192,6 +192,14 @@ + <h2>Links</h2> + <ul> + + <li><a href="https://hayleigh-dot-dev.github.io/gleam-lustre">Website</a></li> + + <li><a href="https://github.com/hayleigh-dot-dev/gleam-lustre">Repository</a></li> + + </ul> <h2>Modules</h2> @@ -265,6 +273,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/cmd.gleam#L7-L7"> + </> + </a> </div> <div class="custom-type-constructors"> @@ -296,6 +307,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/cmd.gleam#L24-L24"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn batch(cmds: List(Cmd(a))) -> Cmd(a)</code></pre> @@ -310,6 +324,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/cmd.gleam#L14-L14"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn from(cmd: fn(fn(a) -> Nil) -> Nil) -> Cmd(a)</code></pre> @@ -324,6 +341,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/cmd.gleam#L30-L30"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn map(cmd: Cmd(a), f: fn(a) -> b) -> Cmd(b)</code></pre> @@ -338,6 +358,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/cmd.gleam#L18-L18"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn none() -> Cmd(a)</code></pre> @@ -352,6 +375,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/cmd.gleam#L46-L46"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn to_list(cmd: Cmd(a)) -> List(fn(fn(a) -> Nil) -> Nil)</code></pre> diff --git a/docs/lustre/element.html b/docs/lustre/element.html index b392213..24862ea 100644 --- a/docs/lustre/element.html +++ b/docs/lustre/element.html @@ -140,13 +140,13 @@ <h2> <a href="../">lustre</a> <span id="project-version"> - <span> - v0.1.0 </span> + <span> - v1.0.0 </span> </span> <script> "use strict"; if ("undefined" !== typeof versionNodes) { - const currentVersion = "v0.1.0"; + const currentVersion = "v1.0.0"; if (! versionNodes.find(element => element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } @@ -192,6 +192,14 @@ + <h2>Links</h2> + <ul> + + <li><a href="https://hayleigh-dot-dev.github.io/gleam-lustre">Website</a></li> + + <li><a href="https://github.com/hayleigh-dot-dev/gleam-lustre">Repository</a></li> + + </ul> <h2>Modules</h2> @@ -485,6 +493,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L10-L10"> + </> + </a> </div> <div class="custom-type-constructors"> @@ -516,6 +527,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L248-L248"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn a(attributes: List(Attribute(a)), children: List( @@ -532,6 +546,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L253-L253"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn abbr(attributes: List(Attribute(a)), children: List( @@ -548,6 +565,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L102-L102"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn address(attributes: List(Attribute(a)), children: List( @@ -564,6 +584,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L386-L386"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn area(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -578,6 +601,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L107-L107"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn article(attributes: List(Attribute(a)), children: List( @@ -594,6 +620,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L112-L112"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn aside(attributes: List(Attribute(a)), children: List( @@ -610,6 +639,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L391-L391"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn audio(attributes: List(Attribute(a)), children: List( @@ -626,6 +658,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L258-L258"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn b(attributes: List(Attribute(a)), children: List( @@ -642,6 +677,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L67-L67"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn base(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -656,6 +694,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L263-L263"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn bdi(attributes: List(Attribute(a)), children: List( @@ -672,6 +713,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L268-L268"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn bdo(attributes: List(Attribute(a)), children: List( @@ -688,6 +732,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L175-L175"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn blockquote(attributes: List(Attribute(a)), children: List( @@ -704,6 +751,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L94-L94"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn body(attributes: List(Attribute(a)), children: List( @@ -720,6 +770,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L273-L273"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn br(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -734,6 +787,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L548-L548"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn button(attributes: List(Attribute(a)), children: List( @@ -750,6 +806,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L469-L469"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn canvas(attributes: List(Attribute(a)), children: List( @@ -766,6 +825,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L495-L495"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn caption(attributes: List(Attribute(a)), children: List( @@ -782,6 +844,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L278-L278"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn cite(attributes: List(Attribute(a)), children: List( @@ -798,6 +863,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L283-L283"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn code(attributes: List(Attribute(a)), children: List( @@ -814,6 +882,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L500-L500"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn col(attributes: List(Attribute(a)), children: List( @@ -830,6 +901,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L505-L505"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn colgroup(attributes: List(Attribute(a)), children: List( @@ -846,6 +920,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L553-L553"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn datalist(attributes: List(Attribute(a)), children: List( @@ -862,6 +939,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L180-L180"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn dd(attributes: List(Attribute(a)), children: List( @@ -878,6 +958,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L482-L482"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn del(attributes: List(Attribute(a)), children: List( @@ -894,6 +977,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L621-L621"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn details(attributes: List(Attribute(a)), children: List( @@ -910,6 +996,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L288-L288"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn dfn(attributes: List(Attribute(a)), children: List( @@ -926,6 +1015,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L626-L626"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn dialog(attributes: List(Attribute(a)), children: List( @@ -942,6 +1034,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L185-L185"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn div(attributes: List(Attribute(a)), children: List( @@ -958,6 +1053,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L190-L190"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn dl(attributes: List(Attribute(a)), children: List( @@ -974,6 +1072,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L195-L195"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn dt(attributes: List(Attribute(a)), children: List( @@ -990,6 +1091,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L293-L293"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn em(attributes: List(Attribute(a)), children: List( @@ -1006,6 +1110,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L419-L419"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn embed(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1020,6 +1127,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L558-L558"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn fieldset(attributes: List(Attribute(a)), children: List( @@ -1036,6 +1146,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L200-L200"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn figcaption(attributes: List(Attribute(a)), children: List( @@ -1052,6 +1165,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L205-L205"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn figure(attributes: List(Attribute(a)), children: List( @@ -1068,6 +1184,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L117-L117"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn footer(attributes: List(Attribute(a)), children: List( @@ -1084,6 +1203,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L563-L563"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn form(attributes: List(Attribute(a)), children: List( @@ -1100,6 +1222,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L35-L36"> + </> + </a> </div> <pre><code class="hljs gleam">pub external fn fragment( @@ -1118,6 +1243,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L127-L127"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn h1(attributes: List(Attribute(a)), children: List( @@ -1134,6 +1262,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L132-L132"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn h2(attributes: List(Attribute(a)), children: List( @@ -1150,6 +1281,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L137-L137"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn h3(attributes: List(Attribute(a)), children: List( @@ -1166,6 +1300,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L142-L142"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn h4(attributes: List(Attribute(a)), children: List( @@ -1182,6 +1319,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L147-L147"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn h5(attributes: List(Attribute(a)), children: List( @@ -1198,6 +1338,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L152-L152"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn h6(attributes: List(Attribute(a)), children: List( @@ -1214,6 +1357,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L72-L72"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn head(attributes: List(Attribute(a)), children: List( @@ -1230,6 +1376,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L122-L122"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn header(attributes: List(Attribute(a)), children: List( @@ -1246,6 +1395,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L210-L210"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn hr(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1260,6 +1412,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L59-L59"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn html(attributes: List(Attribute(a)), head: Element(a), body: Element( @@ -1276,6 +1431,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L298-L298"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn i(attributes: List(Attribute(a)), children: List( @@ -1292,6 +1450,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L424-L424"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn iframe(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1306,6 +1467,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L396-L396"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn img(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1320,6 +1484,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L568-L568"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn input(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1334,6 +1501,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L487-L487"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn ins(attributes: List(Attribute(a)), children: List( @@ -1350,6 +1520,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L303-L303"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn kbd(attributes: List(Attribute(a)), children: List( @@ -1366,6 +1539,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L573-L573"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn label(attributes: List(Attribute(a)), children: List( @@ -1382,6 +1558,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L578-L578"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn legend(attributes: List(Attribute(a)), children: List( @@ -1398,6 +1577,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L215-L215"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn li(attributes: List(Attribute(a)), children: List( @@ -1414,6 +1596,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L157-L157"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn main(attributes: List(Attribute(a)), children: List( @@ -1430,6 +1615,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L48-L49"> + </> + </a> </div> <pre><code class="hljs gleam">pub external fn map( @@ -1448,6 +1636,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L401-L401"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn map_(attributes: List(Attribute(a)), children: List( @@ -1464,6 +1655,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L308-L308"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn mark(attributes: List(Attribute(a)), children: List( @@ -1480,6 +1674,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L462-L462"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn mathml(attributes: List(Attribute(a)), children: List( @@ -1496,6 +1693,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L220-L220"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn menu(attributes: List(Attribute(a)), children: List( @@ -1512,6 +1712,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L77-L77"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn meta(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1526,6 +1729,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L583-L583"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn meter(attributes: List(Attribute(a)), children: List( @@ -1542,6 +1748,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L162-L162"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn nav(attributes: List(Attribute(a)), children: List( @@ -1558,6 +1767,9 @@ as if it were a single one. </p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L18-L19"> + </> + </a> </div> <pre><code class="hljs gleam">pub external fn node( @@ -1579,6 +1791,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L474-L474"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn noscript(attributes: List(Attribute(a)), children: List( @@ -1595,6 +1810,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L429-L429"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn object(attributes: List(Attribute(a)), children: List( @@ -1611,6 +1829,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L225-L225"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn ol(attributes: List(Attribute(a)), children: List( @@ -1627,6 +1848,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L588-L588"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn optgroup(attributes: List(Attribute(a)), children: List( @@ -1643,6 +1867,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L593-L593"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn option(attributes: List(Attribute(a)), children: List( @@ -1659,6 +1886,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L598-L598"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn output(attributes: List(Attribute(a)), children: List( @@ -1675,6 +1905,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L230-L230"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn p(attributes: List(Attribute(a)), children: List( @@ -1691,6 +1924,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L434-L434"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn param(attributes: List(Attribute(a)), children: List( @@ -1707,6 +1943,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L439-L439"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn picture(attributes: List(Attribute(a)), children: List( @@ -1723,6 +1962,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L444-L444"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn portal(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1737,6 +1979,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L235-L235"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn pre(attributes: List(Attribute(a)), children: List( @@ -1753,6 +1998,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L603-L603"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn progress(attributes: List(Attribute(a)), children: List( @@ -1769,6 +2017,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L313-L313"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn rp(attributes: List(Attribute(a)), children: List( @@ -1785,6 +2036,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L318-L318"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn rt(attributes: List(Attribute(a)), children: List( @@ -1801,6 +2055,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L323-L323"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn ruby(attributes: List(Attribute(a)), children: List( @@ -1817,6 +2074,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L328-L328"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn s(attributes: List(Attribute(a)), children: List( @@ -1833,6 +2093,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L333-L333"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn samp(attributes: List(Attribute(a)), children: List( @@ -1849,6 +2112,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L167-L167"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn section(attributes: List(Attribute(a)), children: List( @@ -1865,6 +2131,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L608-L608"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn select(attributes: List(Attribute(a)), children: List( @@ -1881,6 +2150,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L639-L639"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn slot(attributes: List(Attribute(a)), children: List( @@ -1897,6 +2169,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L338-L338"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn small(attributes: List(Attribute(a)), children: List( @@ -1913,6 +2188,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L449-L449"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn source(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -1927,6 +2205,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L343-L343"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn span(attributes: List(Attribute(a)), children: List( @@ -1943,6 +2224,9 @@ child elements.</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L29-L30"> + </> + </a> </div> <pre><code class="hljs gleam">pub external fn stateful( @@ -1966,6 +2250,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L348-L348"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn strong(attributes: List(Attribute(a)), children: List( @@ -1982,6 +2269,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L82-L82"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn style(attributes: List(Attribute(a)), css: String) -> Element( @@ -1998,6 +2288,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L353-L353"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn sub(attributes: List(Attribute(a)), children: List( @@ -2014,6 +2307,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L631-L631"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn summary(attributes: List(Attribute(a)), children: List( @@ -2030,6 +2326,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L358-L358"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn sup(attributes: List(Attribute(a)), children: List( @@ -2046,6 +2345,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L457-L457"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn svg(attributes: List(Attribute(a)), children: List( @@ -2062,6 +2364,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L510-L510"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn table(attributes: List(Attribute(a)), children: List( @@ -2078,6 +2383,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L515-L515"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn tbody(attributes: List(Attribute(a)), children: List( @@ -2094,6 +2402,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L520-L520"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn td(attributes: List(Attribute(a)), children: List( @@ -2110,6 +2421,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L644-L644"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn template(attributes: List(Attribute(a)), children: List( @@ -2126,6 +2440,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L40-L41"> + </> + </a> </div> <pre><code class="hljs gleam">pub external fn text(content: String) -> Element(action)</code></pre> @@ -2141,6 +2458,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L613-L613"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn textarea(attributes: List(Attribute(a))) -> Element(a)</code></pre> @@ -2155,6 +2475,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L525-L525"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn tfoot(attributes: List(Attribute(a)), children: List( @@ -2171,6 +2494,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L530-L530"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn th(attributes: List(Attribute(a)), children: List( @@ -2187,6 +2513,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L535-L535"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn thead(attributes: List(Attribute(a)), children: List( @@ -2203,6 +2532,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L363-L363"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn time(attributes: List(Attribute(a)), children: List( @@ -2219,6 +2551,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L87-L87"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn title(attributes: List(Attribute(a)), name: String) -> Element( @@ -2235,6 +2570,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L540-L540"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn tr(attributes: List(Attribute(a)), children: List( @@ -2251,6 +2589,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L406-L406"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn track(attributes: List(Attribute(a)), children: List( @@ -2267,6 +2608,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L368-L368"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn u(attributes: List(Attribute(a)), children: List( @@ -2283,6 +2627,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L240-L240"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn ul(attributes: List(Attribute(a)), children: List( @@ -2299,6 +2646,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L373-L373"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn var_(attributes: List(Attribute(a)), children: List( @@ -2315,6 +2665,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L411-L411"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn video(attributes: List(Attribute(a)), children: List( @@ -2331,6 +2684,9 @@ Those are just regular Gleam functions that return <code>Element</code>s!</p> </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/element.gleam#L378-L378"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn wbr(attributes: List(Attribute(a))) -> Element(a)</code></pre> diff --git a/docs/lustre/event.html b/docs/lustre/event.html index 109f30b..66ba645 100644 --- a/docs/lustre/event.html +++ b/docs/lustre/event.html @@ -140,13 +140,13 @@ <h2> <a href="../">lustre</a> <span id="project-version"> - <span> - v0.1.0 </span> + <span> - v1.0.0 </span> </span> <script> "use strict"; if ("undefined" !== typeof versionNodes) { - const currentVersion = "v0.1.0"; + const currentVersion = "v1.0.0"; if (! versionNodes.find(element => element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } @@ -192,6 +192,14 @@ + <h2>Links</h2> + <ul> + + <li><a href="https://hayleigh-dot-dev.github.io/gleam-lustre">Website</a></li> + + <li><a href="https://github.com/hayleigh-dot-dev/gleam-lustre">Repository</a></li> + + </ul> <h2>Modules</h2> @@ -288,6 +296,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L16-L16"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn dispatch(action: a) -> fn(fn(a) -> Nil) -> Nil</code></pre> @@ -302,6 +313,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L11-L11"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on(name: String, handler: fn(Dynamic, fn(a) -> Nil) -> Nil) -> Attribute( @@ -318,6 +332,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L114-L114"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_blur(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute(a)</code></pre> @@ -332,6 +349,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L96-L96"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_check(handler: fn(Bool, fn(a) -> Nil) -> Nil) -> Attribute( @@ -348,6 +368,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L25-L25"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_click(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute(a)</code></pre> @@ -362,6 +385,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L110-L110"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_focus(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute(a)</code></pre> @@ -376,6 +402,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L88-L88"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_input(handler: fn(String, fn(a) -> Nil) -> Nil) -> Attribute( @@ -392,6 +421,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L69-L69"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_keydown(handler: fn(String, fn(a) -> Nil) -> Nil) -> Attribute( @@ -408,6 +440,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L61-L61"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_keypress(handler: fn(String, fn(a) -> Nil) -> Nil) -> Attribute( @@ -424,6 +459,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L77-L77"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_keyup(handler: fn(String, fn(a) -> Nil) -> Nil) -> Attribute( @@ -440,6 +478,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L30-L30"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_mouse_down(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute( @@ -456,6 +497,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L40-L40"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_mouse_enter(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute( @@ -472,6 +516,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L45-L45"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_mouse_leave(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute( @@ -488,6 +535,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L55-L55"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_mouse_out(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute( @@ -504,6 +554,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L50-L50"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_mouse_over(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute( @@ -520,6 +573,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L35-L35"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_mouse_up(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute( @@ -536,6 +592,9 @@ </a> </h2> + <a class="member-source" alt="View Source" title="View Source" href="https://github.com/hayleigh-dot-dev/gleam-lustre/blob/v1.0.0/src/lustre/event.gleam#L104-L104"> + </> + </a> </div> <pre><code class="hljs gleam">pub fn on_submit(handler: fn(fn(a) -> Nil) -> Nil) -> Attribute(a)</code></pre> |