HI Vincent.<div><br></div><div>I haven'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'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"><<a href="mailto:vincent.fretin@gmail.com">vincent.fretin@gmail.com</a>></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 = '{{version}}'<br>
<br>
setup(name='{{project}}',<br>
version=version,<br>
description="{{description}}",<br>
...<br>
<br>
The syntax is simpler than dtml we use in AGX2:<br>
<dtml-var "description"><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 <<a href="mailto:zutesmog@gmail.com">zutesmog@gmail.com</a>> wrote:<br>
> Hi Florian<br>
> I use a model based generation approach (from enterprise architect) however<br>
> even archgenxml has templates for large amounts of boiler plate under the<br>
> hood.<br>
> Have you actually looked at the src of archgenxml, if you did you will<br>
> notices it uses dtml for templating the code output ;-)<br>
</div></div></blockquote></div><br></div>