Template css support

closes #803.