Five languages in seven lines, or how not to do web development


This is actual sample code from the Pylons documentation:

(Here's the page)



${c.employees.pager('Page $page: $link_previous $link_next ~4~',
   onclick="$('#my-page-area').load('%s'); return false;")}
<ul>
% for employee in c.employees:
   <li>${employee.first_name} ${employee.last_name}</li>
% endfor
</ul>



It uses 5 languages in 7 lines:

python
javascript
mako script (template scripting)
formatting script for the pager function
html