Minimalistic template processing for OCaml