D Programming/Embedding D in HTML

The dmd compiler has the capability to read an .html file as source. Every code between

<code>void main(){}</code> 

... is treated as D code, and dmd will compile it.