Adding pi constant to template files.