lib/jekyll/typescript/manager.rb
# copy all of the pages in pages to this plugins temporary directory.
#
copy all of the pages in pages to this plugins temporary directory.
copy all of the pages in pages to this plugins temporary directory .
def populate_temp_dir
        Dir.chdir(temp_dir) do
          (@pages + static_files).each do |page|
            if page.is_a?(StaticFile)
              FileUtils.mkdir_p('./' + page.instance_variable_get(:@dir))
              FileUtils.copy(site.in_source_dir(page.relative_path),
                             './' + page.relative_path)
            else
              FileUtils.mkdir_p('./' + page.dir) 
              File.open(page.relative_path, 'w') { |fd| fd.write(page.content) }
            end
          end
        end
      end
def populate_temp_dir Dir . chdir ( temp_dir ) do ( @pages + static_files ) . each do | page | if page . is_a? ( StaticFile ) FileUtils . mkdir_p ( './' + page . instance_variable_get ( :@dir ) ) FileUtils . copy ( site . in_source_dir ( page . relative_path ) , './' + page . relative_path ) else FileUtils . mkdir_p ( './' + page . dir ) File . open ( page . relative_path , 'w' ) { | fd | fd . write ( page . content ) } end end end end
copy all of the pages in pages to this plugins temporary directory.
copy all of the pages in pages to this plugins temporary directory .
# make temp container for file