function getSourceCode(template, body) {
	const loop = template.replace("<body>", body);

	return body.includes("return") && !template.includes("function")
		? `function someFunc() { ${loop} }`
		: loop;
}
Creates source code from the given loop template and loop body.
@param {string} template Loop template.
@param {string} body Loop body.
@returns {string} Source code.