[docs] Some fixes for 'How to extend templates' guide