Using template language to generate dot files

Good question. This is an on-going need.
Here are some answers from the forum & from stackoverflow: