ppx_blob

AuthorJohn Whitington
Homepagehttps://github.com/johnwhitington/ppx_blob
Issue Trackerhttps://github.com/johnwhitington/ppx_blob/issues/
Maintainercontact@coherentgraphics.co.uk
Dependencies
&alcotest
jbuilder
ocaml-migrate-parsetree
PublishedFeb 10, 2018
Source [http] https://github.com/johnwhitington/ppx_blob/releases/download/0.4.0/ppx_blob-0.4.0.tbz
b952544785ab6236bb099740d522cc3d
StatisticsInstalled 113 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ppx_blob/ppx_blob.0.4.0/opam

Include a file as a string at compile time

ppx_blob allows you to include a binary blob from a file as a string. Writing [%blob "filename"] will replace the string with the contents of the file at compile time. This allows the inclusion of arbitary, possibly compressed, data, without the need to respect OCaml's lexical conventions.