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/

Elm Actor Framework - Template - Markdown

This package is as an extension of the Elm Actor Framework Package.

Demo

Turn your markdown templates into Html or any other output enriched by your Actors.

import Framework.Template.Markdown exposing (MarkdownTemplate, blank, parse)


type Actors
    = Editor
    | Layout
    | Counter


components : Components Actors
components =
    Components.fromList
        [ Component.make
            { actor = Counter
            , nodeName = "counter-component"
            }
        , Component.make
            { actor = Counter
            , nodeName = "COUNTER"
            }
        ]


template : String
template =
    """
## A Markdown Example

Lorem **ipsum** dolor sit *amet* ...

- [x] list item
- [ ] more dummy content

Render an actor here!

<counter-component steps="10" value="10" ></counter-component> 

And another one:

<!COUNTER 100:25 >

"""


markdownTemplate : MarkdownTemplate Actors
markdownTemplate =
    parse components template
        |> Result.withDefault blank

In progress

  • ordered list
  • tables

Templates

Actors make up ideal components that can be used on a template.

This module uses a shared type from the Elm Actor Framework -Templates package. The goal of these packages is to be able to provide different parsers and renderers.