Sha256: 5d7f62560c16316cb5bcf00d0696e8334ecfb899f0a755b40835f2749f53f28f

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

<?xml version="1.0" encoding="utf-8"?>
<mx:<%= application_tag %> xmlns:mx="http://www.adobe.com/2006/mxml"
  xmlns:generated="<%= base_package %>.components.generated.*"
  paddingBottom="8" paddingLeft="8" paddingRight="8" paddingTop="8"
  layout="horizontal" styleName="plain" initialize="init()">
  <mx:Script>
    <![CDATA[
<% if use_air -%>
      import org.ruboss.services.air.AIRServiceProvider;
<% end -%>
<% if use_gae -%>
      import org.ruboss.services.http.GAEHTTPServiceProvider;
<% end -%>
      import <%= base_package %>.controllers.<%= command_controller_name %>;

      private function init():void {
<% if use_air -%>
        <%= command_controller_name %>.initialize([AIRServiceProvider], AIRServiceProvider.ID, "<%= base_package %>");
<% elsif use_gae -%>
        <%= command_controller_name %>.initialize([GAEHTTPServiceProvider], GAEHTTPServiceProvider.ID);
<% else -%>
        <%= command_controller_name %>.initialize();
<% end -%>
      }
    ]]>
  </mx:Script>
  <mx:LinkBar dataProvider="{mainViewStack}" direction="vertical" borderStyle="solid" backgroundColor="#EEEEEE"/>
  <mx:ViewStack id="mainViewStack" width="100%" height="100%">
    <!-- For a simple demo, put all the components here. -->
<% for component in component_names -%>
    <generated:<%= component %>/>
<% end -%>
  </mx:ViewStack>
</mx:<%= application_tag %>>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
dima-ruboss4ruby-1.1.1 generators/ruboss_main_app/templates/mainapp.mxml
dima-ruboss4ruby-1.1.2 generators/ruboss_main_app/templates/mainapp.mxml
ruboss4ruby-1.1.2 generators/ruboss_main_app/templates/mainapp.mxml
ruboss4ruby-1.1.0 generators/ruboss_main_app/templates/mainapp.mxml
ruboss4ruby-1.1.1 generators/ruboss_main_app/templates/mainapp.mxml