Last active
August 29, 2015 14:26
-
-
Save ajhager/132c419ee5d564d29d58 to your computer and use it in GitHub Desktop.
Custom Elm Renderers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import MyEngine | |
myView : Signal (MyEngine.NewElement) | |
myView = Signal.constant (MyEngine.Div "Hello") | |
port engine : Task x () | |
port engine = MyEngine.render myView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyEngine where | |
import Native.MyEngine.render | |
type NewElement = Div String | |
render : Signal Element -> Task x () | |
render = Native.MyEngine.render |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment