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