I propose this as a blueprint for a solution: {% name = request.get('name','world') list = ['this','language','rocks'] %} Hello {{ name.upper }} {% for item in list %} {{ item }} {% endfor %} Save it as 'index.nxt' and run it in any future language you are going to design. Create a mod_next and try it on any web server like apache, nginx, etc. It should work without any extra fiddling with config files or installing…
You have just mixed HTML and server code. You fail.
Of course once you master it, you separate the code from the html and call it from the view like this:
hello.nxt
name = request.get('name','world')
list = ['this','language','rocks']
response.render('hello.html',name,list)
hello.html Hello {{ name.upper }}
{% for item in list %}
{{ item }}
{% endfor %}
But what do I know about language design or human behavior?