Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

allo-media/fable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fable

Fable allows you to create a book (like a repository) of your html views, they are grouped as chapters, stories.

Example of fable app

import Fable as Fable exposing (Book)
import Html.Styled exposing (div)

main : Book Msg
main =
    let
        chapters =
            [ Fable.chapter "Chapter 1"
                [ Fable.story "Story 1"
                    [ Fable.ui "test 1" (div [] []) ]
                ]    
            ]
    in
    Fable.app chapters

Developpement

$ npm i
$ npm start

Run example

$ cd example
$ npm i
$ npm start