Skip to content

Customizing an Export Template

Brett Terpstra edited this page Jan 12, 2022 · 1 revision

If you want to edit the formatting of an export format, first check to see if it has a template by running doing template --list. If your format has a template, note its name in the list.

To use a template:

For example, to work with the template for HTML exports:

  1. First, export the template using doing template html --save. This will write the file to ~/.config/doing/templates/html_export.haml. You can specify an alternate path to save using --path /other/directory

  2. Edit the resulting file as desired

  3. Update your configuration with the path to your custom template

    export_templates:
    	html: ~/.config/doing/html_export.haml
    

Now when you use --output html, your custom template will be used instead of the default.