edge icon indicating copy to clipboard operation
edge copied to clipboard

Add yada functionality to serve a local system directory or file

Open luciodale opened this issue 6 years ago • 0 comments

Usage examples:

From your config.edn:

Serve directory:

...
:ig.system/base
{[:my.project/foo :edge.yada.ig/external-directories]
 {:path "/home/user/target/folder/"
  :options {:custom-suffices [...]
            :index-files [...]
             ...}}
...

And in your edge.bidi.ig/vhost:

["/foo/" #ig/ref [:my.project/foo :edge.yada.ig/external-directories]]

Serve single file:

...
:ig.system/base
{[:my.project/bar :edge.yada.ig/external-files]
 {:path "/home/user/target/folder/file.txt"
  :options {:produces [...]
              ...}}
...

And in your edge.bidi.ig/vhost:

["/file" #ig/ref [:my.project/bar :edge.yada.ig/external-files]]

luciodale avatar Oct 10 '19 10:10 luciodale