I intended to write my own templates for C generation, so I went ahead and copied the contents of lang/c/templates
to a new directory. Before attempting to modify them, I tried to generate C headers with these new templates. The command I am running is as follows (I am testing with the public_regulated_data_types
):
nnvg --target-language c --target-endianness=little --enable-serialization-asserts --templates templates public_regulated_data_types/reg --lookup-dir public_regulated_data_types/uavcan
If I simply remove --templates
, all is well and it generates normally. However, after adding the template directory, I get the following:
nunavut.jinja.jinja2.exceptions.TemplateAssertionError: no filter named 'remove_blank_lines'
What am I missing? I can’t seem to make this work at all. The documentation suggests that I should be able to use these just fine.