lib/cream/view/host_area.rb in cream-0.8.9.1 vs lib/cream/view/host_area.rb in cream-0.8.9.2
- old
+ new
@@ -2,11 +2,20 @@
module Host
def for_localhost(&block)
yield block if localhost?
end
+ def not_for_localhost(&block)
+ yield block if !localhost?
+ end
+
def for_public(&block)
# with_output_buffer(&block) if publichost?
yield block if publichost?
+ end
+
+ def not_for_public(&block)
+ # with_output_buffer(&block) if publichost?
+ yield block if !publichost?
end
end
end
\ No newline at end of file