From template to theme