Moved language and source attributes to templates