Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bellroy/elm-actor-framework-template
https://github.com/bellroy/elm-actor-framework-template
elm elm-actor-framework
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bellroy/elm-actor-framework-template
- Owner: bellroy
- License: bsd-3-clause
- Archived: true
- Created: 2020-06-30T04:57:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T02:54:20.000Z (about 2 years ago)
- Last Synced: 2024-04-16T01:26:25.010Z (9 months ago)
- Topics: elm, elm-actor-framework
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/bellroy/elm-actor-framework-template/latest
- Size: 174 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elm Actor Framework - Template
![Build Status](https://github.com/bellroy/elm-actor-framework-template/workflows/Continuous%20Integration/badge.svg) [![Elm package](https://img.shields.io/elm-package/v/bellroy/elm-actor-framework-template.svg)](https://package.elm-lang.org/packages/bellroy/elm-actor-framework-template/latest/)
This package is as an extension of the [Elm Actor Framework](https://github.com/bellroy/elm-actor-framework) [Package](https://package.elm-lang.org/packages/bellroy/elm-actor-framework/latest).
It supplies an uniform method of creating Templates for the Actor Model
environment supplied by the Elm Actor Framework```elm
Text "some text"
Element "strong" [] [ Text "Hello World" ]
Actor <| ActorElement Counter "comp-counter" "counter-1" [] []
```
## Templates
Actors make up ideal components that can be used on a template.
This module provides a shared type system for different template inputs and
outputs. Currently this package is used by;- [Elm Actor Framework - Templates](https://github.com/bellroy/elm-actor-framework-template)
- [Demo](https://bellroy.github.io/elm-actor-framework)
- [Elm Actor Framework - Templates - Html](https://github.com/bellroy/elm-actor-framework-template-html)
- [Demo](https://bellroy.github.io/elm-actor-framework-template-html)
- **Parse** Html Template (Using [`hecrj/html-parser`](https://github.com/hecrj/html-parser))
- **Render** Html (Using [`elm/html`](https://github.com/elm/html))
- [Elm Actor Framework - Templates - Markdown](https://github.com/bellroy/elm-actor-framework-template-markdown)
- [Demo](https://bellroy.github.io/elm-actor-framework-template-markdown)
- **Parse** Markdown (Using [dillonkearns/elm-markdown](https://github.com/dillonkearns/elm-markdown))Without the listed additional template packages this module can still be used to
supply a (custom) template foundation.## Demo
The Demo/Example uses the following template to render Html and the listed Actors.
```elm
template : List (Node Actors)
template =
[ Element "div"
[]
[ Element "h1" [] [ Text "Layout" ]
, Element "div"
[]
[ Actor <| ActorElement Counter "actor-counter" "a" [] [ Text "0" ]
, Actor <| ActorElement Counter "actor-counter" "b" [] [ Text "10" ]
, Actor <|
ActorElement Layout
"actor-layout"
"c"
[]
[ Element "h2" [] [ Text "Layout 2" ]
, Actor <| ActorElement Counter "actor-counter" "d" [] [ Text "100" ]
]
]
]
]
```The included `example` can be previewed online [here](https://bellroy.github.io/elm-actor-framework-template)