{"id":296,"date":"2026-10-26T10:17:15","date_gmt":"2026-10-26T02:17:15","guid":{"rendered":"https:\/\/yykcj.com\/?p=296"},"modified":"2026-10-26T10:17:15","modified_gmt":"2026-10-26T02:17:15","slug":"node-js-%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%ef%bc%9a%e4%bb%8e%e5%9b%9e%e8%b0%83%e5%88%b0%e5%bc%82%e6%ad%a5%e7%9a%84%e5%ae%8c%e6%95%b4%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/yykcj.com\/?p=296","title":{"rendered":"Node.js \u9519\u8bef\u5904\u7406\u6700\u4f73\u5b9e\u8df5\uff1a\u4ece\u56de\u8c03\u5230\u5f02\u6b65\u7684\u5b8c\u6574\u6307\u5357"},"content":{"rendered":"<h2>\u4e3a\u4ec0\u4e48\u9519\u8bef\u5904\u7406\u5728 Node.js \u4e2d\u5982\u6b64\u91cd\u8981<\/h2>\n<p>Node.js \u7684\u975e\u963b\u585e I\/O \u6a21\u578b\u8ba9\u9ad8\u5e76\u53d1\u6210\u4e3a\u53ef\u80fd\uff0c\u4f46\u4e5f\u8ba9\u9519\u8bef\u5904\u7406\u53d8\u5f97\u590d\u6742\u3002\u4e00\u4e2a\u672a\u6355\u83b7\u7684\u5f02\u5e38\u53ef\u80fd\u5bfc\u81f4\u8fdb\u7a0b\u5d29\u6e83\uff0c\u800c\u5f02\u6b65\u64cd\u4f5c\u4e2d\u7684\u9519\u8bef\u82e5\u672a\u59a5\u5584\u5904\u7406\uff0c\u5f80\u5f80\u4f1a\u88ab\u9759\u9ed8\u541e\u6389\uff0c\u7ed9\u8c03\u8bd5\u5e26\u6765\u5de8\u5927\u56f0\u96be\u3002<\/p>\n<p>\u8bb8\u591a\u5f00\u53d1\u8005\u4e60\u60ef\u7528 <code>try...catch<\/code> \u5305\u88f9\u6240\u6709\u4ee3\u7801\uff0c\u4f46\u5728\u5f02\u6b65\u573a\u666f\u4e0b\u8fd9\u5e76\u4e0d\u603b\u662f\u6709\u6548\u3002\u672c\u6587\u5c06\u5e26\u4f60\u4ece\u57fa\u7840\u5230\u8fdb\u9636\uff0c\u638c\u63e1 Node.js \u9519\u8bef\u5904\u7406\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u5e76\u7ed9\u51fa\u53ef\u76f4\u63a5\u8fd0\u884c\u7684\u793a\u4f8b\u3002<\/p>\n<h2>1. \u9519\u8bef\u5904\u7406\u7684\u57fa\u672c\u6a21\u5f0f<\/h2>\n<h3>1.1 \u56de\u8c03\u51fd\u6570\u4e2d\u7684\u9519\u8bef\u4f18\u5148\u7ea6\u5b9a<\/h3>\n<p>Node.js \u65e9\u671f\u5e7f\u6cdb\u4f7f\u7528\u56de\u8c03\u51fd\u6570\uff0c\u7ea6\u5b9a\u9519\u8bef\u4f5c\u4e3a\u7b2c\u4e00\u4e2a\u53c2\u6570\u8fd4\u56de\uff1a<\/p>\n<pre><code class=\"language-javascript\">\nconst fs = require(&#x27;fs&#x27;);\n\nfs.readFile(&#x27;\/etc\/passwd&#x27;, (err, data) =&gt; {\n  if (err) {\n    console.error(&#x27;\u8bfb\u53d6\u6587\u4ef6\u5931\u8d25:&#x27;, err);\n    return;\n  }\n  console.log(data.toString());\n});\n<\/code><\/pre>\n<p><strong>\u6ce8\u610f<\/strong>\uff1a\u52a1\u5fc5\u5728\u56de\u8c03\u4e2d\u68c0\u67e5 <code>err<\/code>\uff0c\u5426\u5219\u9519\u8bef\u4f1a\u88ab\u5ffd\u7565\u3002\u540c\u65f6\u907f\u514d\u5728\u56de\u8c03\u4e2d\u629b\u51fa\u5f02\u5e38\uff0c\u56e0\u4e3a\u8fd9\u4f1a\u4e2d\u65ad\u4e8b\u4ef6\u5faa\u73af\u3002<\/p>\n<h3>1.2 \u4f7f\u7528 Promise \u5904\u7406\u5f02\u6b65\u9519\u8bef<\/h3>\n<p>Promise \u63d0\u4f9b\u4e86 <code>.catch()<\/code> \u65b9\u6cd5\u6765\u96c6\u4e2d\u5904\u7406\u9519\u8bef\uff1a<\/p>\n<pre><code class=\"language-javascript\">\nconst fs = require(&#x27;fs&#x27;).promises;\n\nfs.readFile(&#x27;\/etc\/passwd&#x27;)\n  .then(data =&gt; console.log(data.toString()))\n  .catch(err =&gt; console.error(&#x27;\u8bfb\u53d6\u5931\u8d25:&#x27;, err));\n<\/code><\/pre>\n<p><strong>\ud83d\udca1 \u63d0\u793a<\/strong>\uff1a\u5728 Promise \u94fe\u4e2d\uff0c\u9519\u8bef\u4f1a\u6cbf\u7740\u94fe\u5411\u540e\u4f20\u9012\uff0c\u53ea\u9700\u5728\u672b\u5c3e\u6dfb\u52a0\u4e00\u4e2a <code>.catch()<\/code> \u5373\u53ef\u6355\u83b7\u524d\u9762\u6240\u6709\u73af\u8282\u7684\u9519\u8bef\u3002<\/p>\n<h3>1.3 async\/await \u4e0e try&#8230;catch<\/h3>\n<p>async\/await \u8ba9\u5f02\u6b65\u4ee3\u7801\u770b\u8d77\u6765\u50cf\u540c\u6b65\u4ee3\u7801\uff0c\u53ef\u4ee5\u914d\u5408 <code>try...catch<\/code> \u4f7f\u7528\uff1a<\/p>\n<pre><code class=\"language-javascript\">\nasync function readFile() {\n  try {\n    const data = await fs.readFile(&#x27;\/etc\/passwd&#x27;);\n    console.log(data.toString());\n  } catch (err) {\n    console.error(&#x27;\u8bfb\u53d6\u5931\u8d25:&#x27;, err);\n  }\n}\n<\/code><\/pre>\n<p><strong>\u6ce8\u610f<\/strong>\uff1a<code>try...catch<\/code> \u53ea\u80fd\u6355\u83b7 <code>await<\/code> \u8868\u8fbe\u5f0f\u4e2d\u7684\u9519\u8bef\u3002\u5982\u679c\u5fd8\u8bb0 <code>await<\/code>\uff0c\u9519\u8bef\u5c06\u4e0d\u4f1a\u88ab\u6355\u83b7\u3002<\/p>\n<h2>2. \u96c6\u4e2d\u5f0f\u9519\u8bef\u5904\u7406<\/h2>\n<h3>2.1 \u521b\u5efa\u81ea\u5b9a\u4e49\u9519\u8bef\u7c7b<\/h3>\n<p>\u5b9a\u4e49\u4e1a\u52a1\u9519\u8bef\u7c7b\uff0c\u4fbf\u4e8e\u533a\u5206\u9519\u8bef\u7c7b\u578b\uff1a<\/p>\n<pre><code class=\"language-javascript\">\nclass AppError extends Error {\n  constructor(message, statusCode) {\n    super(message);\n    this.statusCode = statusCode;\n    this.isOperational = true; \/\/ \u6807\u8bb0\u4e3a\u53ef\u9884\u89c1\u7684\u64cd\u4f5c\u9519\u8bef\n    Error.captureStackTrace(this, this.constructor);\n  }\n}\n\n\/\/ \u4f7f\u7528\nthrow new AppError(&#x27;\u7528\u6237\u4e0d\u5b58\u5728&#x27;, 404);\n<\/code><\/pre>\n<h3>2.2 Express \u4e2d\u7684\u9519\u8bef\u5904\u7406\u4e2d\u95f4\u4ef6<\/h3>\n<p>\u5728 Express \u4e2d\uff0c\u4f7f\u7528\u56db\u4e2a\u53c2\u6570\u7684\u4e2d\u95f4\u4ef6\u6765\u6355\u83b7\u6240\u6709\u9519\u8bef\uff1a<\/p>\n<pre><code class=\"language-javascript\">\napp.use((err, req, res, next) =&gt; {\n  const statusCode = err.statusCode || 500;\n  res.status(statusCode).json({\n    status: &#x27;error&#x27;,\n    message: err.message || &#x27;\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef&#x27;\n  });\n});\n<\/code><\/pre>\n<p><strong>\ud83d\udca1 \u63d0\u793a<\/strong>\uff1a\u9519\u8bef\u5904\u7406\u4e2d\u95f4\u4ef6\u5fc5\u987b\u653e\u5728\u6240\u6709\u8def\u7531\u4e4b\u540e\uff0c\u4e14\u5fc5\u987b\u5305\u542b\u56db\u4e2a\u53c2\u6570\uff0c\u5426\u5219 Express \u65e0\u6cd5\u8bc6\u522b\u3002<\/p>\n<h3>2.3 \u4f7f\u7528 async \u5305\u88c5\u5668\u907f\u514d\u91cd\u590d try&#8230;catch<\/h3>\n<p>\u6bcf\u4e2a\u8def\u7531\u90fd\u5199 <code>try...catch<\/code> \u592a\u7e41\u7410\uff0c\u53ef\u4ee5\u5c01\u88c5\u4e00\u4e2a\u9ad8\u9636\u51fd\u6570\uff1a<\/p>\n<pre><code class=\"language-javascript\">\nconst asyncHandler = fn =&gt; (req, res, next) =&gt; {\n  Promise.resolve(fn(req, res, next)).catch(next);\n};\n\n\/\/ \u4f7f\u7528\napp.get(&#x27;\/user\/:id&#x27;, asyncHandler(async (req, res) =&gt; {\n  const user = await User.findById(req.params.id);\n  if (!user) throw new AppError(&#x27;\u7528\u6237\u4e0d\u5b58\u5728&#x27;, 404);\n  res.json(user);\n}));\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u6240\u6709\u5f02\u6b65\u9519\u8bef\u90fd\u4f1a\u81ea\u52a8\u4f20\u9012\u7ed9\u9519\u8bef\u5904\u7406\u4e2d\u95f4\u4ef6\u3002<\/p>\n<h2>3. \u5168\u5c40\u9519\u8bef\u6355\u83b7\u4e0e\u8fdb\u7a0b\u7ba1\u7406<\/h2>\n<h3>3.1 \u76d1\u542c\u672a\u6355\u83b7\u7684\u5f02\u5e38<\/h3>\n<p>\u5373\u4f7f\u6709\u5b8c\u5584\u7684\u9519\u8bef\u5904\u7406\uff0c\u4ecd\u53ef\u80fd\u6709\u6f0f\u7f51\u4e4b\u9c7c\u3002\u76d1\u542c <code>uncaughtException<\/code> \u548c <code>unhandledRejection<\/code> \u4e8b\u4ef6\uff1a<\/p>\n<pre><code class=\"language-javascript\">\nprocess.on(&#x27;uncaughtException&#x27;, (err) =&gt; {\n  console.error(&#x27;\u672a\u6355\u83b7\u7684\u5f02\u5e38:&#x27;, err);\n  \/\/ \u8bb0\u5f55\u65e5\u5fd7\u5e76\u4f18\u96c5\u9000\u51fa\n  process.exit(1);\n});\n\nprocess.on(&#x27;unhandledRejection&#x27;, (reason, promise) =&gt; {\n  console.error(&#x27;\u672a\u5904\u7406\u7684 Promise \u62d2\u7edd:&#x27;, reason);\n  \/\/ \u5efa\u8bae\u8bb0\u5f55\u5e76\u9000\u51fa\uff0c\u907f\u514d\u672a\u77e5\u72b6\u6001\n});\n<\/code><\/pre>\n<p><strong>\u6ce8\u610f<\/strong>\uff1a<code>uncaughtException<\/code> \u540e\u8fdb\u7a0b\u72b6\u6001\u53ef\u80fd\u4e0d\u53ef\u9760\uff0c\u6700\u4f73\u5b9e\u8df5\u662f\u8bb0\u5f55\u9519\u8bef\u540e\u9000\u51fa\uff0c\u7531\u8fdb\u7a0b\u7ba1\u7406\u5668\uff08\u5982 PM2\uff09\u91cd\u542f\u3002<\/p>\n<h3>3.2 \u4f7f\u7528 domain \u6a21\u5757\uff1f\u4e0d\u63a8\u8350\uff01<\/h3>\n<p><code>domain<\/code> \u6a21\u5757\u5df2\u88ab\u5e9f\u5f03\uff0c\u4e0d\u8981\u5728\u65b0\u9879\u76ee\u4e2d\u4f7f\u7528\u3002\u63a8\u8350\u4f7f\u7528 <code>async_hooks<\/code> \u6216 <code>AsyncLocalStorage<\/code> \u8fdb\u884c\u8bf7\u6c42\u7ea7\u522b\u7684\u4e0a\u4e0b\u6587\u8ffd\u8e2a\u3002<\/p>\n<h2>4. \u5b9e\u6218\uff1a\u6784\u5efa\u4e00\u4e2a\u5065\u58ee\u7684 API \u670d\u52a1<\/h2>\n<p>\u8ba9\u6211\u4eec\u7ed3\u5408\u4ee5\u4e0a\u77e5\u8bc6\u70b9\uff0c\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u7528\u6237\u7ba1\u7406 API\u3002<\/p>\n<h3>4.1 \u9879\u76ee\u7ed3\u6784<\/h3>\n<pre><code>\nproject\/\n\u251c\u2500\u2500 app.js\n\u251c\u2500\u2500 errors\/\n\u2502   \u2514\u2500\u2500 AppError.js\n\u251c\u2500\u2500 routes\/\n\u2502   \u2514\u2500\u2500 users.js\n\u2514\u2500\u2500 package.json\n<\/code><\/pre>\n<h3>4.2 \u5b89\u88c5\u4f9d\u8d56<\/h3>\n<pre><code class=\"language-bash\">\nnpm init -y\nnpm install express\n<\/code><\/pre>\n<h3>4.3 \u5b9a\u4e49\u9519\u8bef\u7c7b\u548c\u4e2d\u95f4\u4ef6<\/h3>\n<pre><code class=\"language-javascript\">\n\/\/ errors\/AppError.js\nclass AppError extends Error {\n  constructor(message, statusCode) {\n    super(message);\n    this.statusCode = statusCode;\n    this.isOperational = true;\n    Error.captureStackTrace(this, this.constructor);\n  }\n}\n\nmodule.exports = AppError;\n<\/code><\/pre>\n<h3>4.4 \u521b\u5efa\u8def\u7531<\/h3>\n<pre><code class=\"language-javascript\">\n\/\/ routes\/users.js\nconst express = require(&#x27;express&#x27;);\nconst AppError = require(&#x27;..\/errors\/AppError&#x27;);\nconst router = express.Router();\n\nconst users = [{ id: 1, name: &#x27;Alice&#x27; }];\n\nrouter.get(&#x27;\/:id&#x27;, asyncHandler(async (req, res) =&gt; {\n  const user = users.find(u =&gt; u.id === parseInt(req.params.id));\n  if (!user) throw new AppError(&#x27;\u7528\u6237\u4e0d\u5b58\u5728&#x27;, 404);\n  res.json(user);\n}));\n\n\/\/ asyncHandler \u5b9a\u4e49\nfunction asyncHandler(fn) {\n  return (req, res, next) =&gt; {\n    Promise.resolve(fn(req, res, next)).catch(next);\n  };\n}\n\nmodule.exports = router;\n<\/code><\/pre>\n<h3>4.5 \u4e3b\u5e94\u7528\u6587\u4ef6<\/h3>\n<pre><code class=\"language-javascript\">\n\/\/ app.js\nconst express = require(&#x27;express&#x27;);\nconst usersRouter = require(&#x27;.\/routes\/users&#x27;);\nconst AppError = require(&#x27;.\/errors\/AppError&#x27;);\n\nconst app = express();\n\napp.use(&#x27;\/users&#x27;, usersRouter);\n\n\/\/ 404 \u5904\u7406\napp.use((req, res, next) =&gt; {\n  next(new AppError(&#x27;\u63a5\u53e3\u4e0d\u5b58\u5728&#x27;, 404));\n});\n\n\/\/ \u5168\u5c40\u9519\u8bef\u5904\u7406\napp.use((err, req, res, next) =&gt; {\n  if (err.isOperational) {\n    res.status(err.statusCode).json({ message: err.message });\n  } else {\n    console.error(&#x27;\u975e\u64cd\u4f5c\u9519\u8bef:&#x27;, err);\n    res.status(500).json({ message: &#x27;\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef&#x27; });\n  }\n});\n\nconst PORT = 3000;\napp.listen(PORT, () =&gt; console.log(`\u670d\u52a1\u8fd0\u884c\u5728 http:\/\/localhost:${PORT}`));\n<\/code><\/pre>\n<h3>4.6 \u6d4b\u8bd5<\/h3>\n<p>\u542f\u52a8\u670d\u52a1\u540e\uff0c\u8bbf\u95ee <code>http:\/\/localhost:3000\/users\/1<\/code> \u5e94\u8fd4\u56de\u7528\u6237\u4fe1\u606f\uff0c\u8bbf\u95ee <code>http:\/\/localhost:3000\/users\/999<\/code> \u5e94\u8fd4\u56de 404 \u9519\u8bef\u3002<\/p>\n<h2>5. \u5e38\u89c1\u5751\u4e0e\u6700\u4f73\u5b9e\u8df5\u603b\u7ed3<\/h2>\n<ul>\n<li><strong>\u59cb\u7ec8\u5904\u7406 Promise \u62d2\u7edd<\/strong>\uff1a\u4f7f\u7528 <code>.catch()<\/code> \u6216 <code>try...catch<\/code>\uff0c\u907f\u514d <code>unhandledRejection<\/code>\u3002<\/li>\n<li><strong>\u533a\u5206\u64cd\u4f5c\u9519\u8bef\u4e0e\u7a0b\u5e8f\u9519\u8bef<\/strong>\uff1a\u64cd\u4f5c\u9519\u8bef\uff08\u5982\u9a8c\u8bc1\u5931\u8d25\uff09\u5e94\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\uff0c\u7a0b\u5e8f\u9519\u8bef\uff08\u5982\u6570\u636e\u5e93\u8fde\u63a5\u5931\u8d25\uff09\u5e94\u8bb0\u5f55\u5e76\u91cd\u542f\u3002<\/li>\n<li><strong>\u4e0d\u8981\u541e\u6389\u9519\u8bef<\/strong>\uff1a\u5373\u4f7f\u8bb0\u5f55\u65e5\u5fd7\uff0c\u4e5f\u8981\u8003\u8651\u662f\u5426\u5e94\u8be5\u5411\u4e0a\u4f20\u9012\u3002<\/li>\n<li><strong>\u4f7f\u7528\u9519\u8bef\u7801<\/strong>\uff1a\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u7684\u9519\u8bef\u4fe1\u606f\u5e94\u5305\u542b\u53ef\u8bfb\u7684\u6d88\u606f\u548c\u9519\u8bef\u7801\uff0c\u4fbf\u4e8e\u524d\u7aef\u5904\u7406\u3002<\/li>\n<li><strong>\u65e5\u5fd7\u8bb0\u5f55<\/strong>\uff1a\u4f7f\u7528 Winston \u6216 Pino \u7b49\u65e5\u5fd7\u5e93\uff0c\u7ed3\u6784\u5316\u8bb0\u5f55\u9519\u8bef\u4fe1\u606f\u3002<\/li>\n<li><strong>\u751f\u4ea7\u73af\u5883\u9690\u85cf\u5806\u6808<\/strong>\uff1a\u4e0d\u8981\u5c06\u9519\u8bef\u5806\u6808\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\uff0c\u9632\u6b62\u4fe1\u606f\u6cc4\u9732\u3002<\/li>\n<\/ul>\n<h2>6. \u5ef6\u4f38\u9605\u8bfb<\/h2>\n<ul>\n<li>Node.js \u5b98\u65b9\u6587\u6863\uff1a\u9519\u8bef\u5904\u7406<\/li>\n<li>Express \u9519\u8bef\u5904\u7406\u6307\u5357<\/li>\n<li>\u4f7f\u7528 AsyncLocalStorage \u8fdb\u884c\u8bf7\u6c42\u8ffd\u8e2a<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u5b9e\u8df5\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u6784\u5efa\u51fa\u5065\u58ee\u7684 Node.js \u5e94\u7528\uff0c\u4ece\u5bb9\u5e94\u5bf9\u5404\u79cd\u9519\u8bef\u573a\u666f\u3002\u8bb0\u4f4f\uff0c\u597d\u7684\u9519\u8bef\u5904\u7406\u4e0d\u662f\u4e8b\u540e\u8865\u6551\uff0c\u800c\u662f\u8bbe\u8ba1\u7684\u4e00\u90e8\u5206\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u7cfb\u7edf\u8bb2\u89e3 Node.js \u9519\u8bef\u5904\u7406\u7684\u6838\u5fc3\u6a21\u5f0f\uff0c\u6db5\u76d6\u56de\u8c03\u3001Promise\u3001async\/await \u4ee5\u53ca\u5168\u5c40\u9519\u8bef\u6355\u83b7\uff0c\u5e76\u63d0\u4f9b\u53ef\u8fd0\u884c\u4ee3\u7801\u548c\u8e29\u5751\u7ecf\u9a8c\uff0c\u5e2e\u52a9\u4f60\u6784\u5efa\u5065\u58ee\u7684\u540e\u7aef\u670d\u52a1\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[44,5,103,45,144],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-3","category-4","tag-express","tag-node-js","tag-103","tag-45","tag-144"],"_links":{"self":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":0,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"wp:attachment":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}