In this example first and second options wrap the line with the appropriate Template Tag (changes background-color). Last option insert associated Template.
All templates sets in config constant. You could places config in a controller or even move it to separate file.