     self = @
 
     next = ->
-      self.result[0] = 'var ' + self.result[0]
+      if not self.skiproot
+        self.result[0] = 'var ' + self.result[0]
       callback(null)
 
     # Get the maximum index for group namespaces in the namespaces array

  
    # Appends the group namespace declarations
    for g in [0...groupNamespaceLength]
      self.result.push "#{@namespaces[g]} = #{@namespaces[g]} || {};"
    
    if groupNamespaceLength is @namespaces.length
      next()

    if settings.templates? then @templates = settings.templates
    else callback('Error: \'templates\' is not configured')
    
    if settings.skiproot? then @skiproot = settings.skiproot

    if @groupNamespace? and @templates?
      @callback = callback
      @namespaces = []
