module Netzke class ExtComponent attr_accessor :name def initialize(name, config = {}) @name = name @config = config end def config @config ||= {} end # Rendering def js_component_render %Q{Ext.ComponentMgr.create(#{config.to_nifty_json}).render("ext-#{name.to_s.split('_').join('-')}");} end # Container for rendering def js_component_html %Q{
} end end end