How to use a custom server-side template engine (e.g., Markdown) instead of the built-in *.phtml engine?

See also: