Explicitly setting Reason mode in the eml templater
Closed this issue · 0 comments
aantron commented
Currently, the way the templater decides whether it should emit Reason syntax after preprocessing the template, is by checking whether the extension is .re
, so, e.g., foo.eml.re
:
Lines 787 to 791 in b8a46f4
Given that we recommend using .eml.html
files as a project scales, we need a command-line argument to the templater to explicitly tell it to emit Reason code.
The command-line argument would be added around here:
Lines 24 to 28 in b8a46f4
which uses stdlib module Arg
.
The command line would be passed to the dream_eml
binary from dune
rules:
Lines 5 to 8 in b8a46f4