adding scala language to templates