Hi,<br><br>As I said a few days ago, I&#39;m working with Jinja2 as my template engine.<br><br>I have my grok app, created with grokproject, and some separated eggs in development. Some of that eggs contains grok.View classes usging Jinja templates<br>
<br>mainApp<br>&nbsp; &nbsp; &nbsp; app.py<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; app_templates<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...&nbsp;&nbsp;&nbsp;&nbsp; <br>
egg.development/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; egg/<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; development/<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; views.py<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; views_templates/<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; someview.jinja<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://another.pt">another.pt</a><br>
<br>The problem (bug?) that I found was that it seems that when the Views (using Jinja templates) are grokked it doesn&#39;t found the Jinja templates for that Views. It works fine with views using ZopePageTemplates<br><br>
The error log says:<br><br>zope.configuration.config.ConfigurationExecutionError: &lt;class &#39;martian.error.GrokError&#39;&gt;: View &lt;class &#39;egg.development.views.SomeView&#39;&gt; has no associated template or &#39;render&#39; method.<br>
<br><br>To make it work, I must do<br><br>class SomeView(grok.View):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....<br>someview = JinjaTemplate(&#39;path/to/someview.jinja&#39;)<br><br><br>Am I doing anything wrong??<br><br>Regards,<br>
<br>
-- <br>Santiago Videla<br><a href="http://www.revolucionesweb.com.ar" target="_blank">www.revolucionesweb.com.ar</a><br><a href="http://www.linkedin.com/in/svidela" target="_blank">http://www.linkedin.com/in/svidela</a><br>

<br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que l@s tod@s somos.<br>