Gasoline is an OCaml library providing application templates, such as *Unix filters* or *compilers*. Application templates are parametrised by the command line, environment or configuration files, support fine-grained lightweight diagnostics and handle components.