import jQuery.*; class <%= @haxe_class_name %> extends Havior { public static function main(){ Havior.start("<%= @file_path %>"); } public override function onLoad(){ <% @actions.each do |name,method| %> // <%= route = "#{name}@#{method}" %> addCallback("<%= route %>", function(data){ /// TODO this.getDOM().html("<%= route%>:" + data.message); }); <% end %> <% @actions.each do |name,method| %> // sendAsync("<%= "#{name}@#{method}" %>", {} ); <% end %> } }