Improves HtmlFormat, to pass the current path to templates