dune 593 Bytes
Newer Older
zapashcanon's avatar
zapashcanon committed
1
(executable
Dario Pinto's avatar
Dario Pinto committed
2
 (public_name server)
3
 (modules content server template blog blog_content)
4
 (libraries dream omd ubase markup lambdasoup))
zapashcanon's avatar
zapashcanon committed
5 6 7 8 9 10 11 12

(rule
 (targets template.ml)
 (deps template.eml.html)
 (action
  (run dream_eml %{deps} --workspace %{workspace_root})))

(rule
zapashcanon's avatar
zapashcanon committed
13
 (target content.ml)
zapashcanon's avatar
zapashcanon committed
14
 (deps
zapashcanon's avatar
zapashcanon committed
15
  (source_tree content))
zapashcanon's avatar
zapashcanon committed
16 17 18
 (action
  (with-stdout-to
   %{null}
zapashcanon's avatar
zapashcanon committed
19
   (run ocaml-crunch -m plain content -o %{target}))))
20 21 22 23 24 25 26 27 28

(rule
 (target blog_content.ml)
 (deps
  (source_tree content/blog/assets))
 (action
  (with-stdout-to
   %{null}
   (run ocaml-crunch -m plain content/blog/assets -o %{target}))))