fable-compiler / fable-arch

Framework for building applications based on the elm architecture.
https://fable-compiler.github.io/fable-arch/
Apache License 2.0
60 stars 14 forks source link

add new vnode function to inject virtual-dom in view #63

Closed MaxDeg closed 7 years ago

MaxDeg commented 7 years ago

Offer a possibility to inject a virtual-dom tree generated by another library in a view coded in F#

let render linkPrefix markdown =
  remark()
    .``use``(hljs)
    .``use``(vdom, { components = components linkPrefix })
    .``process``(markdown)
    .contents

//--------------------------
div [ classy "container doc-main" ] [
    div [ classy "row" ] [
      div [ classy "col-sm-8" ] [ 
        render ("#/" + context.libraryId + "/")  content |> unbox |> vnode
      ]
      sidebarMenu context
    ]
  ]
MangelMaxime commented 7 years ago

Thanks for you PR. I will add it later this week :)

MangelMaxime commented 7 years ago

This PR is released inside fable-arch v 0.10.1