Search code examples
freemarkertemplate-enginefmpp

Fmpp template for directory name


I am using freemarker templates to automatically generate files. While this works fine so far - including changing the names of files - I have one additional feature I need. The name of some directories within the virtual file path have to be changed according to a template, for example:

  • /${flow.name}_design/...
  • /${flow.name}_implementation/...

Is there a way to achieve this with the template engine? Thanks for your help and best regards.


Solution

  • FMPP only creates output directories as needed. Since you can rename output files, and the directory can be part of the new name, you can influence if in what directory the output file will be created.