for more information visit the package's GitHub page
Package contains the following modules:
This package is as an extension of the Elm Actor Framework Package.
It supplies an uniform method of creating Templates for the Actor Model environment supplied by the Elm Actor Framework
Text "some text"
Element "strong" [] [ Text "Hello World" ]
Actor <| ActorElement Counter "comp-counter" "counter-1" [] []
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;
hecrj/html-parser
)elm/html
)Without the listed additional template packages this module can still be used to supply a (custom) template foundation.
The Demo/Example uses the following template to render Html and the listed Actors.
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