class RawHandler < Compound::Handler

	action :view do |path, app|
		app.body(File.open(path){ |f| f.read })
		app.headers({"Content-Type" => "text/plain"})
	end

	action :edit do |path, app|
		app.body("Editing:\n" + File.open(path){ |f| f.read })
		app.headers({"Content-Type" => "text/plain"})
	end

end

class RawHandler < Compound::Handler

	action :view do |path, app|
		app.body(File.open(path){ |f| f.read })
		app.headers({"Content-Type" => "text/plain"})
	end

	action :edit do |path, app|
		app.body("Editing:\n" + File.open(path){ |f| f.read })
		app.headers({"Content-Type" => "text/plain"})
	end

	action :write do |path, app|
		app.body("Wrote #{path} with:\n\n#{app.params[:content]}")
	end

end

Add write action placeholder for raw handler
Add write action placeholder for raw handler
