0

I am looking for a python web templating engine that works like this:

<table>
 <%
 for item in items:
 %>
 <tr>
 <th>Name</th>
 <td><%= item.name %></td>
 </tr>
 <%
 %>
</table>

I have worked with PHP before so this seems nice to me. I have looked here http://wiki.python.org/moin/Templating but I cant find exactly what Im looking for

asked Dec 1, 2011 at 15:02
0

4 Answers 4

4

Jinja2 — inspired by Django templates, but much improved, text-based. And speaking of Django, you probably want to pick a framework before you pick a template engine.

answered Dec 1, 2011 at 15:06
Sign up to request clarification or add additional context in comments.

Comments

2

I would try Mako

answered Dec 1, 2011 at 15:05

Comments

2

It's a lot more than just a template engine... But I'm a huge Django fan

https://djangoproject.com/

https://docs.djangoproject.com/en/1.3/topics/templates/

answered Dec 1, 2011 at 15:06

Comments

0

You're most probably looking for Jinja, http://jinja.pocoo.org/docs/

Also, you might want to familiarise yourself with Web2Py, Flask or Django.

answered Dec 1, 2011 at 15:06

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.