HI Vincent.<div><br></div><div>I haven&#39;t looked an jinja to date. Will definately have a look at it.</div><div><br></div><div>I generate a lot of code (sql, gae models, storm schema, formish schema&#39;s) from Enterprise Architect, and </div>
<div>currently using dtml for all non html/xml output.</div><div><br></div><div> Cheers</div><div><br></div><div>T <br><br><div class="gmail_quote">On Sun, Sep 5, 2010 at 3:35 PM, Vincent Fretin <span dir="ltr">&lt;<a href="mailto:vincent.fretin@gmail.com">vincent.fretin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
For AGX3, we started to use Jinja for the template, for example for<br>
the generation of setup.py, we have:<br>
<br>
version = &#39;{{version}}&#39;<br>
<br>
setup(name=&#39;{{project}}&#39;,<br>
      version=version,<br>
      description=&quot;{{description}}&quot;,<br>
...<br>
<br>
The syntax is simpler than dtml we use in AGX2:<br>
&lt;dtml-var &quot;description&quot;&gt;<br>
<font color="#888888"><br>
Vincent<br>
</font><div><div></div><div class="h5"><br>
<br>
On Sun, Sep 5, 2010 at 5:13 AM, Tim Hoffman &lt;<a href="mailto:zutesmog@gmail.com">zutesmog@gmail.com</a>&gt; wrote:<br>
&gt; Hi Florian<br>
&gt; I use a model based generation approach (from enterprise architect) however<br>
&gt; even archgenxml has templates for large amounts of  boiler plate under the<br>
&gt; hood.<br>
&gt; Have you actually looked at the src of archgenxml, if you did you will<br>
&gt; notices it uses dtml for templating the code output ;-)<br>
</div></div></blockquote></div><br></div>