tricycle/elm-actor-framework-template-markdown/1.0.0

Renamed to bellroy/elm-actor-framework-template-markdown. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as tricycle/elm-actor-framework-template-markdown still install under that name. 1 version of 1 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/bellroy/elm-actor-framework-template-markdown.

What we checked: The repo moved to github.com/bellroy/elm-actor-framework-template-markdown. Rebuilt with git archive from commit 6f62a8768603 of https://github.com/bellroy/elm-actor-framework-template-markdown (zip prefix tricycle-elm-actor-framework-template-markdown-b9066d6/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 588adc9e3c086a14f3d42739b9d8ebaed97cf121.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/tricycle/elm-actor-framework-template-markdown/zipball/1.0.0/

Framework.Template.Markdown

type alias MarkdownTemplate appActors =
MarkdownTemplate appActors

Your parsed template that originated from a string containing valid Html

Creation

blank : MarkdownTemplate appActors

An empty, blank MarkdownTemplate

Components appActors
-> String
-> Result String (MarkdownTemplate appActors)

Parse a string containing valid Html into an MarkdownTemplate

Add Components to replace Html Elements with your Actors based on their nodeNames. (e.g. <my-actor></my-actor>)

fromNodes : List (Node appActors) -> MarkdownTemplate appActors

Turn a list of Nodes into an MarkdownTemplate

This could be useful for when you use your own Html Parser.

Rendering

toNodes : MarkdownTemplate appActors -> List (Node appActors)

Turn a MarkdownTemplate into a list of Nodes

This could be useful for when you want to write or use another method of rendering the template in question.

Utility

MarkdownTemplate appActors
-> List
{ actor : appActors
, reference : String
, actorElement : ActorElement appActors
}

Get the actor, reference and original complete node from a template that are meant to be spawned.

The String is a reference that can be used on the render function in combination with a Pid to render the Actors output.