Make HTML template more flexible.