lib/bolt/serve_page.rb in benofsky-bolt-0.4.1 vs lib/bolt/serve_page.rb in benofsky-bolt-0.4.2
- old
+ new
@@ -2,9 +2,9 @@
DRb.start_service()
@serve_instance = DRbObject.new(nil, $drb_uri)
def page(path, &block)
- path = "" if path == "index"
@current_page = path
+ path = "" if path == "index"
@serve_instance.pages[path] = block
end
\ No newline at end of file