Sha256: 7bdbf6be189ebc83601571830a0d60fbcf15081d8e6029a0d80c7c3237a69344

Contents?: true

Size: 1.33 KB

Versions: 4

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.restfulx.services.air.AIRServiceProvider;
<% end -%>
<% if use_gae -%>
      import org.restfulx.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

4 entries across 4 versions & 2 rubygems

Version Path
dima-restfulx-1.2.0 generators/rx_main_app/templates/mainapp.mxml
dima-restfulx-1.2.1 generators/rx_main_app/templates/mainapp.mxml
restfulx-1.2.0 generators/rx_main_app/templates/mainapp.mxml
restfulx-1.2.1 generators/rx_main_app/templates/mainapp.mxml