CPress 在模板中获取 url 请求参数

在模板中提供了一个全局 app 对象,可以调用 app.request.getParameter() 获取当次请求的数据。

例如,url 为 http://example.com?id=5 ,想要获取 id 值,则使用 {% set id = app.request.getParameter("id") %}