Created
December 20, 2015 08:19
-
-
Save burabure/b961b8496aa7c5ef78c5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 VDOM (toString) where | |
import Html | |
import Native.VDOM | |
toString : Html.Html -> String | |
toString html = | |
Native.VDOM.toString html |
This file contains hidden or 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
var toHTML = require('vdom-to-html'); | |
var toString = function(vNode) { | |
return toHTML(vNode); | |
} | |
var make = function make(elm) { | |
elm.Native = elm.Native || {}; | |
elm.Native.VDOM = elm.Native.VDOM || {}; | |
if (elm.Native.VDOM.values) return elm.Native.VDOM.values; | |
return { | |
toString: toString | |
}; | |
}; | |
Elm.Native.VDOM = {}; | |
Elm.Native.VDOM.make = make; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment