== 题目要求 == url_for方式使用,在模板中动态实现url == 框架说明 == Pylons (http://pylonshq.com) == 步骤 == 在命令行下操作 === 1. 创建Project2项目 === {{{ paster create -t pylons project2 }}} === 2. 创建Hello App === {{{ cd project2 paster controller hello }}} === 3. 修改project2/controllers/hello.py === {{{ #!python def index(self): return render('/index.html') def test(self): return "test href link" }}} === 5. 在project2/templates下创建index.html === {{{