Extensible HTML template engine