getComponent template function.
Change some formatting.