Generate index page from template