basic example with tiny_httpd
This commit is contained in:
parent
619be59031
commit
a67ff6acab
6 changed files with 72 additions and 28 deletions
29
example/dune
29
example/dune
|
|
@ -1,14 +1,25 @@
|
|||
(executable
|
||||
(name css_path)
|
||||
(modules css_path mysites)
|
||||
(libraries dune-site))
|
||||
|
||||
(generate_sites_module
|
||||
(module mysites)
|
||||
(sites leaflet))
|
||||
|
||||
(executable
|
||||
(name script)
|
||||
(modules script)
|
||||
(libraries brr leaflet)
|
||||
(modes js))
|
||||
|
||||
(executable
|
||||
(name server)
|
||||
(modules content server css_path mysites)
|
||||
(libraries dune-site tiny_httpd))
|
||||
|
||||
(generate_sites_module
|
||||
(module mysites)
|
||||
(sites leaflet))
|
||||
|
||||
(rule
|
||||
(with-stdout-to
|
||||
content.ml
|
||||
(progn
|
||||
(echo "let index_html = {|")
|
||||
(cat index.html)
|
||||
(echo "|}")
|
||||
(echo "let script_js = {|")
|
||||
(cat script.bc.js)
|
||||
(echo "|}"))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue