Processing templates, injecting texts and parameters into them