# Using template language to generate dot files

**URL:** <https://forum.graphviz.org/t/using-template-language-to-generate-dot-files/1189>\
**Category:** Dev\
**Created:** [May 18, 2022, 3:08pm UTC](https://forum.graphviz.org/t/using-template-language-to-generate-dot-files/1189 "2022-05-18T15:08:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [May 19, 2022, 12:06am UTC](https://forum.graphviz.org/t/using-template-language-to-generate-dot-files/1189/2 "2022-05-19T00:06:40Z")

</div>

Good question. This is an on-going need.  
Here are some answers from the forum & from [stackoverflow](https://stackoverflow.com):

- [Using node attributes in HTML style label](https://forum.graphviz.org/t/using-node-attributes-in-html-style-label/356)
- [graphviz - Set pre-defined node styles? - Stack Overflow](https://stackoverflow.com/questions/63140881/set-pre-defined-node-styles/63142066#63142066)
- [How can I create named edge "types" in Graphviz/dot/neato? - Stack Overflow](https://stackoverflow.com/questions/46595101/how-can-i-create-named-edge-types-in-graphviz-dot-neato/70023759#70023759)
- [flowchart - Can you build reusable styles in GraphViz? - Stack Overflow](https://stackoverflow.com/questions/27262465/can-you-build-reusable-styles-in-graphviz)  
And future solutions:
- [[Other] [New Feature Request] Add a CSS-like "class" attribute (#694) · Issues · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/issues/694)
- [Styles for GraphViz (#1566) · Issues · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/issues/1566)
- [[Other] Classes for more layout less code (#673) · Issues · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/issues/673)

---

_[View the full topic](https://forum.graphviz.org/t/using-template-language-to-generate-dot-files/1189)._
