Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'ramaze'
- class Main < Ramaze::Controller
- def index
- make_static
- end
- private
- def make_static
- unless action.options[:make_static]
- action.options[:make_static] = true
- File.open "public/#{action.name}.html", 'w+' do |io|
- io.write action.call
- end
- end
- end
- end
- Ramaze.start
Add Comment
Please, Sign In to add comment