Ignore Readme.md

I have a README.md file in my source directory. When I build, I want the file to stay in markdown format rather than html.

I used

ignore 'README.md'

in my config.rb - but that simply takes it out of the build.

Thank for any help - and for middleman, it is really great.

After ignore-ing it in config.rb you can copy it manually with the after_build hook:

# After build hooks (config.rb)
after_build do |builder|
  system("cp #{config[:source]+'/README.md'} #{config[:build_dir]}")
end

I’m pretty sure there is more elegant solution to this, but this one works in one of my projects.

Works great! Thank you Komor.

Here’s a couple of other solutions in case anyone is interested: