Adding edit_template files promise (introduced in 3.3.0)
Reordering promises to keep reference manual order (section 7.4)