Skip to content

babsballetschool/image-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-directory

Elm project showing an image directory structure.

Usage

Include it in your project with the following command

elm install babsballetschool/image-directory

Import it in your source file with

import ImageDirectory

Retrieve from somewhere a JSON file like

{
  "type": "directory",
  "contents": [
    { "type": "file", "location":"http://via.placeholder.com/20x20"},
    { "type": "file", "location":"http://via.placeholder.com/20x30"},
    { "type": "directory", "contents": [{ "type": "file", "location":"http://via.placeholder.com/30x20"}] }
  ]
}

And decode it with ImageDirectory.decoder to obtain a ImageDirectory.Entry. It can be viewed ImageDirectory.view.

About

Elm project showing an image directory structure

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages