fable-compiler / repl-legacy

http://fable.io/repl
MIT License
14 stars 10 forks source link

Fable.FCS component

Example of how to use the Fable.FCS component on your web

How to add a sample ?

This is the documenation of how to add a sample to the REPL, please note it's still in early stage and may change in the future

To add a sample, you need to update the src/samples.json file. This file is used to generate the samples menu in the browser.

You can add 3 types or entries:

Category

{
    "type": "category",
    "label": "Learn Fable",
    "children": [
    ]
}

SubCategory

{
    "type": "sub-category",
    "label": "Interop",
    "children": [
    ]
}

SubCategory

{
    "type": "menu-item",
    "label": "Basic canvas",
    "fsharpCode": "samples/basic-canvas/basic_canvas.fs",
    "htmlCode": "samples/basic-canvas/basic_canvas.html"
}

All the urls for fsharpCode, htmlCode are relative to the public folder.