Skip to content

Instantly share code, notes, and snippets.

@ajhager
Last active August 29, 2015 14:26
Show Gist options
  • Save ajhager/132c419ee5d564d29d58 to your computer and use it in GitHub Desktop.
Save ajhager/132c419ee5d564d29d58 to your computer and use it in GitHub Desktop.
Custom Elm Renderers
module Main where
import MyEngine
myView : Signal (MyEngine.NewElement)
myView = Signal.constant (MyEngine.Div "Hello")
port engine : Task x ()
port engine = MyEngine.render myView
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