def simple_compile_directory(directory)
      if directory.is_a?(String)
        # If we just have a single dirname, assume it's under src
        from_directory = (directory[/\//] ? '' : 'src/') + directory

        directory = {
          :from => from_directory,
          :as => directory
        }
      end

      directory[:use_tilt] |= true

      Dir[@base_dir.join(directory[:from], '**/*')].each do |path|
        file_in_path = Pathname.new(path)

        next unless file_in_path.file?

        file_out_path = remap_path_to_build_directory(path, directory)

        if directory[:use_tilt]
          content = get_compiled_file_content(file_in_path)
          file_out_path = asset_output_filename(file_out_path, Tilt.mappings.keys)
        else
          content = File.read(file_in_path)
        end

        FileUtils.mkdir_p(file_out_path.dirname)
        File.open(file_out_path, 'w') do |f|
          f.write content
        end
      end
    end
def simple_compile_directory(directory)
      if directory.is_a?(String)
        # If we just have a single dirname, assume it's under src
        from_directory = (directory[/\//] ? '' : 'src/') + directory

        directory = {
          :from => from_directory,
          :as => directory
        }
      end

      directory[:use_tilt] |= true

      Dir[@base_dir.join(directory[:from], '**/*')].each do |path|
        file_in_path = Pathname.new(path)

        next unless file_in_path.file?

        file_out_path = remap_path_to_build_directory(path, directory)

        if directory[:use_tilt]
          content = get_compiled_file_content(file_in_path)
          file_out_path = asset_output_filename(file_out_path, Tilt.mappings.keys)
        else
          content = File.read(file_in_path)
        end

        FileUtils.mkdir_p(file_out_path.dirname)
        File.open(file_out_path, 'w') do |f|
          f.write content
        end
      end
    end
Copy all the files from a directory to the output, compiling
 them if they are familiar to us. Does not do any sprocketing.