 # Other than the key, any invalid fields will not be copied to the new template
 # which will instead use the preferred default value for those fields.
 addImportedTemplate = (template) ->
+  log.trace()
+  log.debug 'Creating a new template with the following details...', template
   if isKeyValid template.key
     newTemplate =
       content:  template.content

        unless initialTabChange
          id = id.match(/(\S*)_nav$/)[1]
          id = id[0].toUpperCase() + id.substr 1
          analytics.track 'Tabs', 'Changed', id
        initialTabChange = no
        $(document.body).scrollTop 0
    # Reflect the persisted tab.
    store.init 'options_active_tab', 'general_nav'
    $("##{store.get 'options_active_tab'}").click()
    # Ensure that form submissions don't reload the page.
    $('form').submit ->
      no

# When creating a new template, any invalid properties will be replaced with
# their default values.
readImport = (importData) ->
  log.trace()
  log.debug 'Importing the following data...', importData
  data = templates: []
  keys = []
  for template in importData.templates
