{"id":4148,"date":"2020-03-02T16:44:05","date_gmt":"2020-03-02T08:44:05","guid":{"rendered":"https:\/\/damogame.cn\/wordpress\/?p=4148"},"modified":"2020-03-02T16:44:05","modified_gmt":"2020-03-02T08:44:05","slug":"lua-%e5%8d%8f%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/4148","title":{"rendered":"Lua \u534f\u7a0b"},"content":{"rendered":"<div class=\"rEsl9f\">\n<div class=\"_2mYfmT\">\n<div>\n<div class=\"s-dsoj\"><a href=\"https:\/\/blog.csdn.net\/yzf279533105\/article\/details\/79982139\">\u539f\u6587\u5730\u5740<\/a><\/div>\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<article class=\"_2rhmJa\">\u5e76\u53d1\u662f\u73b0\u5b9e\u4e16\u754c\u7684\u672c\u8d28\u7279\u5f81\uff0c\u800c\u806a\u660e\u7684\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6\u7528\u6765\u6a21\u62df\u5e76\u53d1\u7684\u6280\u672f\u624b\u6bb5\u4fbf\u662f\u591a\u4efb\u52a1\u673a\u5236\u3002\u591a\u4efb\u52a1\u673a\u5236\u5927\u81f4\u53ef\u5212\u5206\u4e3a\u4e24\u79cd\uff1a<\/p>\n<ul>\n<li>\u62a2\u5360\u5f0f\u591a\u4efb\u52a1\uff08preemptive multi tasking\uff09<br \/>\n\u62a2\u5360\u5f0f\u591a\u4efb\u52a1\u8ba9\u64cd\u4f5c\u7cfb\u7edf\u6765\u51b3\u5b9a\u5408\u9002\u6267\u884c\u54ea\u4e2a\u4efb\u52a1<\/li>\n<li>\u534f\u4f5c\u5f0f\u591a\u4efb\u52a1\uff08cooperative multi tasking\uff09<br \/>\n\u534f\u4f5c\u5f0f\u591a\u4efb\u52a1\u5c06\u51b3\u5b9a\u6743\u4ea4\u7ed9\u4efb\u52a1\uff0c\u8ba9\u5b83\u4eec\u5728\u81ea\u5df1\u4efb\u52a1\u5408\u9002\u7684\u65f6\u5019\u81ea\u613f\u653e\u5f03\u6267\u884c\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e24\u79cd\u5ea6\u5076\u4efb\u52a1\u5404\u6709\u4f18\u7f3a\uff0c\u62a2\u5360\u5f0f\u591a\u4efb\u52a1\u56fa\u6709\u7684\u540c\u6b65\u95ee\u9898\u4f7f\u5f97\u7a0b\u5e8f\u7ecf\u5e38\u51fa\u73b0\u4e0d\u53ef\u9884\u77e5\u7684\u884c\u4e3a\uff0c\u534f\u4f5c\u5f0f\u591a\u4efb\u52a1\u5219\u8981\u6c42\u4efb\u52a1\u5177\u5907\u76f8\u5f53\u7684\u81ea\u5f8b\u7cbe\u795e\u3002<\/p>\n<p>\u534f\u7a0b\uff08Coroutine\uff09\u6280\u672f\u662f\u4e00\u79cd\u7a0b\u5e8f\u63a7\u5236\u673a\u5236\uff0c\u65e9\u5728\u4e0a\u4e16\u7eaa60\u5e74\u4ee3\u5df2\u88ab\u63d0\u51fa\uff0c\u7528\u5b83\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5b9e\u73b0\u534f\u4f5c\u5f0f\u591a\u4efb\u52a1\u3002\u5728\u4e3b\u6d41\u7684\u7f16\u7a0b\u8bed\u8a00\u5982C++\u3001Java\u3001Pascal&#8230;\u4e2d\uff0c\u5f88\u5c11\u80fd\u770b\u89c1\u534f\u7a0b\u7684\u8eab\u5f71\u3002\u4f46\u5728\u4e0d\u5c11\u52a8\u6001\u811a\u672c\u8bed\u8a00\u5982Python\u3001Perl&#8230;\u4e2d\u5374\u90fd\u63d0\u4f9b\u4e86\u534f\u7a0b\u6216\u4e0e\u4e4b\u76f8\u4f3c\u7684\u673a\u5236\uff0c\u5176\u4e2d\u6700\u4e3a\u7a81\u51fa\u4fbf\u662fLua\u3002<\/p>\n<p>\u534f\u7a0b\uff08Coroutine\uff09\u662f\u6307\u534f\u4f5c\u7684\u4f8b\u7a0b\uff0c\u662f\u591a\u4efb\u52a1\u673a\u5236\u3002\u6700\u65e9\u7531Melvin Conway\u4e8e1963\u5e74\u63d0\u51fa\u5e76\u5b9e\u73b0\u3002\u8ddf\u4e3b\u6d41\u7a0b\u5e8f\u8bed\u8a00\u4e2d\u7684\u7ebf\u7a0b\u4e0d\u4e00\u6837\uff0c\u7ebf\u7a0b\u662f\u5c5e\u4e8e\u4fb5\u5165\u5f0f\u7684\u7ec4\u4ef6\uff0c\u7ebf\u7a0b\u5b9e\u73b0\u7684\u7cfb\u7edf\u79f0\u4e3a\u62a2\u5360\u5f0f\u591a\u4efb\u52a1\u7cfb\u7edf\uff0c\u800c\u534f\u7a0b\u5b9e\u73b0\u7684\u591a\u4efb\u52a1\u7cfb\u7edf\u79f0\u4e3a\u534f\u4f5c\u5f0f\u591a\u4efb\u52a1\u7cfb\u7edf\u3002<\/p>\n<p>\u534f\u7a0b\uff08Coroutine\uff09\u62e5\u67094\u79cd\u72b6\u6001\uff1a\u6b63\u5e38\uff08normal\uff09\u3001\u6302\u8d77\uff08suspended\uff09\u3001\u8fd0\u884c\uff08running\uff09\u3001\u505c\u6b62\uff08dead\uff09<\/p>\n<ul>\n<li>\u6302\u8d77\uff1a\u534f\u7a0b\u521b\u5efa\u540e\u6216<code>yield<\/code>\u4e4b\u540e\u5373\u6302\u8d77\u72b6\u6001\uff0c\u6b64\u65f6\u4e0d\u80fd\u81ea\u52a8\u8fd0\u884c\u3002<\/li>\n<li>\u8fd0\u884c\uff1a\u5982\u679c\u5728\u534f\u7a0b\u51fd\u6570\u4e2d\u8c03\u7528<code>status<\/code>\uff0c\u4f20\u5165\u534f\u7a0b\u81ea\u8eab\u53e5\u67c4\uff0c\u90a3\u4e48\u6267\u884c\u5230\u8fd9\u91cc\u7684\u65f6\u5019\u4f1a\u8fd4\u56de<code>running<\/code>\u7684\u72b6\u6001\u3002<\/li>\n<li>\u505c\u6b62\uff1a\u51fd\u6570\u5904\u7406\u5b8c\u6bd5\u540e\u7684\u72b6\u6001\uff0c\u6b64\u65f6\u4e0d\u80fd\u518d\u91cd\u65b0<code>resume<\/code>\u3002<\/li>\n<\/ul>\n<p>\u7531\u4e8e\u7ebf\u7a0b\u7f3a\u4e4f<code>yield<\/code>\u8bed\u4e49\uff0c\u6240\u4ee5\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u4e0d\u53ef\u907f\u514d\u7684\u9700\u8981\u8c03\u5ea6\u3001\u4f11\u7720\u6302\u8d77\u3001\u4e0a\u4e0b\u6587\u5207\u6362\u7b49\u7cfb\u7edf\u5f00\u9500\uff0c\u800c\u4e14\u8fd8\u9700\u8981\u5c0f\u5fc3\u7684\u4f7f\u7528\u540c\u6b65\u673a\u5236\u4fdd\u8bc1\u591a\u7ebf\u7a0b\u7684\u6b63\u5e38\u8fd0\u884c\u3002\u800c\u534f\u7a0b\uff08Coroutine\uff09\u7684\u8fd0\u884c\u6307\u4ee4\u662f\u56fa\u5b9a\u7684\uff0c\u65e0\u9700\u540c\u6b65\u673a\u5236\u3002\u534f\u7a0b\u4e4b\u95f4\u5207\u6362\u4e5f\u53ea\u6d89\u53ca\u5230\u63a7\u5236\u6743\u7684\u4ea4\u6362\uff0c\u76f8\u6bd4\u8f83\u7ebf\u7a0b\u6765\u6240\u662f\u975e\u5e38\u8f7b\u4fbf\u7684\u3002\u4e0d\u8fc7\u540c\u4e00\u65f6\u523b\u53ef\u4ee5\u6709\u591a\u4e2a\u7ebf\u7a0b\u8fd0\u884c\uff0c\u4f46\u4ec5\u80fd\u6709\u4e00\u4e2a\u534f\u7a0b\u8fd0\u884c\u3002<\/p>\n<p>Lua\u8bed\u8a00\u5b9e\u73b0\u7684\u534f\u7a0b\uff08Coroutine\uff09\u662f\u4e00\u79cd\u975e\u5bf9\u79f0\u5f0f\uff08asymmetric\uff09\u534f\u7a0b\uff0c\u6216\u79f0\u4e4b\u4e3a\u534a\u5bf9\u79f0\u5f0f\uff08semi-symmetric\uff09\u534f\u7a0b\uff0c\u53c8\u6216\u53eb\u534a\u534f\u7a0b\uff08semi-coroutine\uff09\u3002\u8fd9\u79cd\u534f\u7a0b\u673a\u5236\u4e4b\u6240\u4ee5\u79f0\u4e3a\u975e\u5bf9\u79f0\uff0c\u662f\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e24\u79cd\u4f20\u9012\u7a0b\u5e8f\u63a7\u5236\u6743\u7684\u64cd\u4f5c\u3002<\/p>\n<ol>\n<li>\uff08\u91cd\uff09\u8c03\u7528\u534f\u7a0b\uff0c\u5373\u901a\u8fc7<code>coroutine.resume<\/code>\u5b9e\u73b0\u3002<\/li>\n<li>\u6302\u8d77\u534f\u7a0b\u5e76\u5c06\u7a0b\u5e8f\u63a7\u5236\u6743\u8fd4\u56de\u7ed9\u534f\u7a0b\u7684\u8c03\u7528\u8005\uff0c\u5373\u901a\u8fc7<code>coroutine.yield<\/code>\u5b9e\u73b0\u3002<\/li>\n<\/ol>\n<p>\u4e00\u4e2a\u534a\u5bf9\u79f0\u534f\u7a0b\u53ef\u4ee5\u770b\u4f5c\u662f\u4ece\u5c5e\u4e8e\u5b83\u7684\u8c03\u7528\u8005\u7684\uff0c\u4e8c\u8005\u7684\u5173\u7cfb\u975e\u5e38\u7c7b\u4f3c\u4e8e\u4f8b\u7a0b\uff08routine\uff09\u4e0e\u5176\u8c03\u7528\u8005\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/p>\n<p>\u65e2\u7136\u6709\u975e\u5bf9\u79f0\u5f0f\u534f\u7a0b\uff0c\u5f53\u7136\u4e5f\u5c31\u6709\u5bf9\u79f0\u5f0f\u534f\u7a0b\uff08symmetric\uff09\u3002\u5bf9\u79f0\u5f0f\u534f\u7a0b\u7684\u7279\u70b9\u662f\u53ea\u6709\u4e00\u79cd\u4f20\u9012\u7a0b\u5e8f\u63a7\u5236\u6743\u7684\u64cd\u4f5c\uff0c\u5373\u5c06\u63a7\u5236\u6743\u76f4\u63a5\u4f20\u9012\u7ed9\u6307\u5b9a\u7684\u534f\u7a0b\u3002<\/p>\n<p>Lua\u4e2d\u7684\u534f\u7a0b\uff08Coroutine\uff0c\u534f\u540c\u7a0b\u5e8f\uff0c\u534f\u540c\u5f0f\u591a\u7ebf\u7a0b\uff09\u548c\u591a\u7ebf\u7a0b\uff08Thread\uff09\u548c\u76f8\u4f3c\uff0c\u6bcf\u4e2a\u534f\u7a0b\u90fd\u6709\u81ea\u5df1\u7684\u5806\u6808\u3001\u5c40\u90e8\u53d8\u91cf\u3001PC\u8ba1\u6570\u5668\uff0c\u540c\u65f6\u53c8\u4e0e\u5176\u4ed6\u534f\u7a0b\u5171\u4eab\u5168\u5c40\u53d8\u91cf\u7b49\uff0c\u5e76\u901a\u8fc7<code>yield-resume<\/code>\u5b9e\u73b0\u534f\u7a0b\u95f4\u7684\u5207\u6362\u3002\u4e0d\u540c\u4e4b\u5904\u5728\u4e8eLua\u7684\u534f\u7a0b\u662f\u975e\u62a2\u5360\u5f0f\u7684\u591a\u7ebf\u7a0b\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u4f60\u5fc5\u987b\u624b\u52a8\u7684\u5728\u534f\u7a0b\u95f4\u8fdb\u884c\u5207\u6362\uff0c\u800c\u4e14\u540c\u4e00\u65f6\u523b\u53ea\u80fd\u6709\u4e00\u4e2a\u534f\u7a0b\u5728\u8fd0\u884c\u3002\u53e6\u5916\uff0cLua\u4e2d\u7684\u534f\u7a0b\u65e0\u6cd5\u5728\u5916\u90e8\u5c06\u5176\u505c\u6b62\uff0c\u800c\u4e14\u662f\u6709\u53ef\u80fd\u5bfc\u81f4\u7a0b\u5e8f\u5835\u585e\u7684\u3002<\/p>\n<p>\u76f8\u5173\u6982\u5ff5<\/p>\n<ul>\n<li>\u8fdb\u7a0b\u662f\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u7684\u5b9e\u4f8b<\/li>\n<li>\u7ebf\u7a0b\uff08Thread\uff09\u662f\u8fdb\u7a0b\u5185\u4e00\u4e2a\u76f8\u5bf9\u72ec\u7acb\u7684\u3001\u53ef\u8c03\u5ea6\u7684\u6267\u884c\u5355\u5143\uff0c\u662f\u7cfb\u7edf\u72ec\u7acb\u8c03\u5ea6\u548c\u5206\u914dCPU\u7684\u57fa\u672c\u5355\u4f4d\uff0c\u662f\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u7684\u8c03\u5ea6\u5355\u4f4d\u3002<br \/>\n\u6bcf\u4e2a\u7ebf\u7a0b\u4ee3\u8868\u4e00\u4e2a\u6267\u884c\u5e8f\u5217\uff0c\u5f53\u5728\u7a0b\u5e8f\u4e2d\u521b\u5efa\u591a\u7ebf\u7a0b\u7684\u65f6\u5019\uff0c\u540c\u4e00\u65f6\u523b\u591a\u4e2a\u7ebf\u7a0b\u662f\u540c\u65f6\u6267\u884c\u7684\uff0c\u4e0d\u8fc7\u5b9e\u8d28\u4e0a\u591a\u4e2a\u7ebf\u7a0b\u662f\u5e76\u53d1\u7684\uff0c\u56e0\u4e3a\u53ea\u6709\u4e00\u4e2aCPU\uff0c\u6240\u4ee5\u540c\u4e00\u4e2a\u65f6\u523b\u53ea\u4f1a\u6709\u4e00\u4e2a\u7ebf\u7a0b\u5728\u6267\u884c\u3002\u5728\u4e00\u4e2a\u65f6\u95f4\u7247\u5185\u54ea\u4e2a\u7ebf\u7a0b\u6267\u884c\u65f6\u4e0d\u786e\u5b9a\u7684\uff0c\u53ef\u901a\u8fc7\u63a7\u5236\u7ebf\u7a0b\u7684\u4f18\u5148\u7ea7\uff0c\u4e0d\u8fc7\u771f\u6b63\u7684\u7ebf\u7a0b\u8c03\u5ea6\u662f\u7531CPU\u6765\u51b3\u5b9a\u7684\u3002<\/li>\n<li>\u534f\u7a0b\u662f\u6307\u534f\u4f5c\u7a0b\u5e8f\uff0c\u534f\u7a0b\u4e4b\u95f4\u901a\u8fc7\u534f\u4f5c\uff08\u51fd\u6570\u8c03\u7528\uff09\u6765\u5b8c\u6210\u4e00\u4e2a\u65e2\u5b9a\u7684\u4efb\u52a1\u3002<br \/>\n\u534f\u7a0b\u662f\u628a\u7ebf\u7a0b\u4e2d\u4e0d\u786e\u5b9a\u7684\u5730\u65b9\u5c3d\u53ef\u80fd\u5730\u53bb\u6389\uff0c\u6267\u884c\u5e8f\u5217\u95f4\u7684\u5207\u6362\u4e0d\u518d\u7531CPU\u9690\u85cf\u7684\u8fdb\u884c\uff0c\u800c\u662f\u7531\u7a0b\u5e8f\u663e\u5f0f\u5730\u8fdb\u884c\u3002\u6240\u4ee5\uff0c\u4f7f\u7528\u534f\u7a0b\u5b9e\u73b0\u5e76\u53d1\uff0c\u662f\u9700\u8981\u591a\u4e2a\u534f\u7a0b\u5f7c\u6b64\u534f\u4f5c\u7684\u3002<\/li>\n<\/ul>\n<div class=\"image-package\">\n<div class=\"image-container\">\n<div class=\"image-container-fill\"><\/div>\n<div class=\"image-view\" data-width=\"912\" data-height=\"756\"><img decoding=\"async\" class=\"\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/4933701-0063eea2b7fc388f.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/912\/format\/webp\" data-original-src=\"\/\/upload-images.jianshu.io\/upload_images\/4933701-0063eea2b7fc388f.png\" data-original-width=\"912\" data-original-height=\"756\" data-original-format=\"image\/png\" data-original-filesize=\"107989\" data-image-index=\"0\" \/><\/div>\n<\/div>\n<div class=\"image-caption\">\u8fdb\u7a0b<\/div>\n<\/div>\n<p>\u534f\u7a0b\uff08Coroutine\uff09\u5177\u6709\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u7279\u6027\uff1a<\/p>\n<ol>\n<li>\u79c1\u6709\u6570\u636e\u5728\u534f\u7a0b\u95f4\u65ad\u5f0f\u8fd0\u884c\u671f\u95f4\u4e00\u76f4\u6709\u6548<\/li>\n<li>\u534f\u7a0b\u6bcf\u6b21<code>yield<\/code>\u540e\u8ba9\u51fa\u63a7\u5236\u6743\uff0c\u4e0b\u6b21\u88ab<code>resume<\/code>\u540e\u4ece\u505c\u6b62\u70b9\u5f00\u59cb\u7ee7\u7eed\u6267\u884c\u3002<\/li>\n<\/ol>\n<p>\u901a\u4fd7\u6765\u8bf4\uff0c\u7c7b\u4f3c\u4e00\u4e2a\u5e26\u6709\u9759\u6001\u6570\u636e\u4e14\u5177\u6709\u591a\u4e2a\u8fdb\u5165\u70b9\u548c\u8fd4\u56de\u70b9\u7684\u51fd\u6570\u3002<\/p>\n<p>\u534f\u7a0b\u51fd\u6570<\/p>\n<ul>\n<li>coroutine.create()<br \/>\n\u534f\u7a0b\u7684\u521b\u5efa\uff0c\u4f20\u5165\u51fd\u6570\u53c2\u6570\uff0c\u8fd4\u56de<code>thread<\/code>\u7ebf\u7a0b\u5bf9\u8c61\u3002<\/li>\n<li>coroutine.yield()<br \/>\n\u534f\u7a0b\u7684\u6682\u505c\uff0c\u4f7f\u6b63\u5728\u6267\u884c\u4e2d\u7684\u51fd\u6570\u6302\u8d77\u3002<\/li>\n<li>coroutine.resume()<br \/>\n\u534f\u7a0b\u7684\u8c03\u7528\uff0c\u7528\u4e8e\u542f\u52a8\u6216\u518d\u6b21\u542f\u52a8\u4e00\u4e2a\u534f\u7a0b\uff0c\u4f7f\u5176\u7531\u6302\u8d77\u72b6\u6001\u8f6c\u53d8\u4e3a\u8fd0\u884c\u72b6\u6001\u3002<\/li>\n<\/ul>\n<\/article>\n<div><\/div>\n<div class=\"_1kCBjS\">\n<div class=\"_18vaTa\">\n<div class=\"_3BUZPB\">\n<div class=\"_2Bo4Th\" tabindex=\"-1\" role=\"button\" aria-label=\"\u7ed9\u6587\u7ae0\u70b9\u8d5e\"><\/div>\n<p><span class=\"_1LOh_5\" tabindex=\"-1\" role=\"button\" aria-label=\"\u67e5\u770b\u70b9\u8d5e\u5217\u8868\">4\u4eba\u70b9\u8d5e<i class=\"anticon anticon-right\" aria-label=\"icon: right\"><\/i><\/span><\/div>\n<div class=\"_3BUZPB\">\n<div class=\"_2Bo4Th\" tabindex=\"-1\" role=\"button\"><\/div>\n<\/div>\n<\/div>\n<div class=\"_18vaTa\"><a class=\"_3BUZPB _1x1ok9 _1OhGeD\" href=\"https:\/\/www.jianshu.com\/nb\/33679302\" target=\"_blank\" rel=\"noopener noreferrer\"><i class=\"anticon\" aria-label=\"ic-notebook\"><\/i>lua<\/a><\/p>\n<div class=\"_3BUZPB ant-dropdown-trigger\">\n<div class=\"_2Bo4Th\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740 \u5e76\u53d1\u662f\u73b0\u5b9e\u4e16\u754c\u7684\u672c\u8d28\u7279\u5f81\uff0c\u800c\u806a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[118],"class_list":["post-4148","post","type-post","status-publish","format-standard","hentry","tag-02-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/4148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=4148"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/4148\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=4148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=4148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=4148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}