Copy paste code from template.html