Add a directory node
Move template functionality from datanode to html engine.