Can reStructuredText be used for web or generic templating?
Docutils and reStructuredText can be used with or as a component of a templating system, but they do not themselves include templating functionality. Templating should simply be left to dedicated templating systems. Users can choose a templating system to apply to their reStructuredText documents as best serves their interests. There are many good templating systems for Python (ht2html, YAPTU, Quixote’s PTL, Cheetah, etc.; see this non-exhaustive list of some other templating systems), and many more for other languages, each with different approaches. We invite you to try several and find one you like. If you adapt it to use Docutils/reStructuredText, please consider contributing the code to Docutils or let us know and we’ll keep a list here. One reST-specific web templating system is rest2web, a tool for automatically building websites, or parts of websites.