local template = require("resty.template")
local cjson = require("cjson")
local arg = ngx.req.get_uri_args();
local res = ngx.location.capture('/article/info?id=' .. arg.id)
if res.status == 200 then
local obj = cjson.decode(res.body)
template.render("article_info.html",{par=arg,content=obj})
else
ngx.exit(404)
end