This sure is an interesting document

This file demonstrates code generation using html template servers. You start with a generic object definition. A number of templates with the help of the AspireWeb AKC CMS and JSRender can make the code generation incredibly sweet and simple.

See examples below where it took me less than 20 minutes to code gen a java class, and a create table.

Begin

End

satya - 4/22/2014 4:08:43 PM

This has started with


<div class="akc_expand1 akc_expand_hide" type="GenerateJavaClientWidget">
<script type="text">
    <classname>xyz</classname>
    <attributes>
      <row>
         <name>field1</name>
         <type>string</type>
      </row>
      <row>
         <name>field2</name>
         <type>int</type>
      </row>
    </attributes>
</script>
</div>

satya - 4/22/2014 4:09:13 PM

This will produce at run time

satya - 4/22/2014 4:17:58 PM

Demo class

satya - 4/23/2014 9:37:11 AM

An example of SQL Server


<div class="akc_expand1 akc_expand_hide" type="GenerateSQLServerClientWidget">
<script type="text">
    <classname>xyz</classname>
    <attributes>
      <row>
         <name>field1</name>
         <type>string</type>
      </row>
      <row>
         <name>field2</name>
         <type>int</type>
      </row>
    </attributes>
</script>
</div>

satya - 4/23/2014 9:37:41 AM

Lets give it a run

satya - 4/29/2014 11:01:03 AM

An Aspire codegen Example


<div class="akc_expand1 akc_expand_hide" type="GenerateAspireDisplayURL1ClientWidget">
<script type="text">
    <urlname>SatShowQuestionsForATestURL</urlname>
    <module-name>sat-scoring-app</module-name>
    <moduletag>Sat</moduletag>
    <htmlfilename>sat-show-questions-for-a-test-url.html</htmlfilename>
    <loopname>questions</loopname>
</script>
</div>

satya - 4/29/2014 11:01:19 AM

Aspire Codegen expanded