|
|
|
|
|
by Kilimanjaro
5097 days ago
|
|
That's php, just cleaner. If we don't recognize that as one of php's strength we're doomed to 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 <h1>Hello {{ name.upper }}</h1>
<ul>
{% for item in list %}
<li>{{ item }}</li>
{% endfor %}
</ul>
But what do I know about language design or human behavior? |
|