Module generator exception when using a template

6 views
Skip to first unread message

Gilles Durant

unread,
Sep 3, 2025, 11:47:44 AM (13 days ago) Sep 3
to ThrowTheSwitch Forums
Hello,

I have a problem with the module generator. I define a directory with my templates and use the directive :boilerplate_files: in the project.toml file.
But when I create a new module, I have this exception:
🧨 EXCEPTION: malformed format string - %=
🌱 Ceedling could not complete operations because of errors

Here is the template file I use:
```
/*******************************************************************************
 * File : <%= module_name %>.c
 * Author : <%= author || "Not specified" %>
 * Date : <%= date || Time.now.strftime("%Y-%m-%d") %>
 * Description : Implementation of the module <%= module_name %>.
 ******************************************************************************/

#include "<%= module_name %>.h"

/* Public function */ */
void <%= module_name %>_init(void)
{
    /* Module initialisation */
}
```

The version of Ceedling => 1.0.1-fb1ce6c

Thanks!

Reply all
Reply to author
Forward
0 new messages