Sha256: 81b14f98506117f75997f8ad1ad926755aa0d8c9093abe807b700f2a8f691d3b
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
class HamlPanel < Netzke::Base action :ping_server def js_configure(c) super c.title = "Haml panel" c.body_padding = 5 @who = 'World' c.html = render(:body) c.bbar = [:ping_server] end js_configure do |c| c.on_ping_server = <<-JS function(){ this.whatsUp(); } JS c.update_body = <<-JS function(html){ this.update(html);} JS end endpoint :whats_up do |params,this| @time = Time.now this.update_body(render(:server_response)) end end
Version data entries
3 entries across 3 versions & 1 rubygems