{"id":2082,"date":"2019-08-21T12:34:35","date_gmt":"2019-08-21T04:34:35","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=2082"},"modified":"2019-08-21T12:34:35","modified_gmt":"2019-08-21T04:34:35","slug":"hanjst-online-doc-and-api","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/hanjst-online-doc-and-api\/","title":{"rendered":"\u6c49\u5409\u65af\u7279Hanjst\u6a21\u677f\u8bed\u8a00\u53ca\u5f15\u64ce\u5728\u7ebf\u6587\u6863Doc&amp;API\u9996\u53d1"},"content":{"rendered":"<blockquote>\n<p>\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u7684\u68b3\u7406\u603b\u7ed3\u3001\u7cbe\u5fc3\u7f16\u5236\uff0c\u6c49\u5409\u65af\u7279Hanjst\u5728\u7ebf\u6587\u6863\u548cAPI\u5df2\u7ecf\u5b8c\u6210\u521d\u7248\uff0c\u5e76\u53d1\u5e03\u5728 \/\/wadelau.github.io \u4e0a\uff0c\u4e3a\u65b9\u4fbf\u68c0\u7d22\u548c\u4f7f\u7528\uff0c\u5179\u5217\u76ee\u5f55\u5982\u4e0b\uff0c\u4f9b\u67e5\u8be2\u3001\u4f7f\u7528\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<p>&nbsp;<\/p>\n<h1 id=\"hanjst\u6982\u8ff0\">\u6c49\u5409\u65af\u7279Hanjst\u6982\u8ff0<\/h1>\n<p><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2019\/06\/hanjst-logo.201901.jpg\" alt=\"Hanjst\u6807\u5fd7\" \/><\/p>\n<p><strong>Hanjst<\/strong>\u662f\u4e00\u4e2a<strong>Han<\/strong>\u00a0<strong>J<\/strong>\u00a0ava\u00a0<strong>S<\/strong>\u00a0cript\u00a0<strong>T<\/strong>\u00a0emplate\uff0c\u5b83\u662fHTML\u548cWeb\u7684\u6a21\u677f\u8bed\u8a00\u548c\u5f15\u64ce\u3002<\/p>\n<p>\u201c\u00a0<strong>\u6c49\u5409\u65af\u7279<\/strong>\u00a0\u201d\u662f Hanjst \u7684\u4e2d\u6587\u540d\u79f0\u3002<\/p>\n<h2 id=\"\u5165\u95e8\">\u5165\u95e8<\/h2>\n<h3 id=\"hanjst\u662f\u4ec0\u4e48\u4e3a\u4ec0\u4e48\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/what-is-hanjst\">Hanjst\u662f\u4ec0\u4e48\uff1f\u4e3a\u4ec0\u4e48\uff1f<\/a><\/h3>\n<h3 id=\"\u5b89\u88c5\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-install\">\u5b89\u88c5<\/a><\/h3>\n<h3 id=\"\u914d\u7f6e\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-config\">\u914d\u7f6e<\/a><\/h3>\n<h4 id=\"\u8c03\u8bd5\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-debug\">\u8c03\u8bd5<\/a><\/h4>\n<h3 id=\"\u5feb\u901f\u5f00\u59cb\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-ready-to-go\">\u5feb\u901f\u5f00\u59cb<\/a><\/h3>\n<h3 id=\"\u6742\u9879\">\u6742\u9879<\/h3>\n<h1 id=\"hanjst\u4e3a\u6a21\u677f\u8bbe\u8ba1\u4eba\u5458\">Hanjst\u4e3a\u6a21\u677f\u8bbe\u8ba1\u4eba\u5458<\/h1>\n<h2 id=\"\u57fa\u672c\u8bed\u6cd5\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-syntax\">\u57fa\u672c\u8bed\u6cd5<\/a><\/h2>\n<h2 id=\"\u53d8\u91cf\u548c\u4fee\u9970\u7b26\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-variable\">\u53d8\u91cf\u548c\u4fee\u9970\u7b26<\/a><\/h2>\n<h2 id=\"\u529f\u80fd\u51fd\u6570\u6307\u4ee4\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-function\">\u529f\u80fd\u51fd\u6570\u6307\u4ee4<\/a><\/h2>\n<h3 id=\"\u5185\u7f6e\u529f\u80fd\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-function\">\u5185\u7f6e\u529f\u80fd<\/a><\/h3>\n<h3 id=\"\u81ea\u5b9a\u4e49\u529f\u80fd\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-function-2\">\u81ea\u5b9a\u4e49\u529f\u80fd<\/a><\/h3>\n<h2 id=\"hanjst\u5728\u670d\u52a1\u5668\u7aef\u8fd0\u884c\">Hanjst\u5728\u670d\u52a1\u5668\u7aef\u8fd0\u884c<\/h2>\n<h3 id=\"nodejs-1\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-nodejs\">Node.js<\/a><\/h3>\n<h1 id=\"hanjst\u4e3a\u540e\u7aef\u5f00\u53d1\u4eba\u5458\">Hanjst\u4e3a\u540e\u7aef\u5f00\u53d1\u4eba\u5458<\/h1>\n<h2 id=\"hanjst-\u5bf9\u8c61\u7c7b\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-class\">Hanjst \u5bf9\u8c61\u7c7b<\/a><\/h2>\n<h2 id=\"\u670d\u52a1\u5668\u7aef\u66ff\u6362\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-replacement\">\u670d\u52a1\u5668\u7aef\u66ff\u6362<\/a><\/h2>\n<h2 id=\"json\u4e2d\u7684\u6570\u636e\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/data-in-json\">JSON\u4e2d\u7684\u6570\u636e<\/a><\/h2>\n<h2 id=\"\u8d44\u6e90\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">\u8d44\u6e90<\/a><\/h2>\n<h3 id=\"\u8def\u5f84\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">\u8def\u5f84<\/a><\/h3>\n<h3 id=\"\u811a\u672c\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">\u811a\u672c<\/a><\/h3>\n<h4 id=\"\u7b2c\u4e09\u65b9\u7c7b\u5e93\">\u7b2c\u4e09\u65b9\u7c7b\u5e93<\/h4>\n<h3 id=\"\u56fe\u7247\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">\u56fe\u7247<\/a><\/h3>\n<h2 id=\"\u9ad8\u901f\u7f13\u5b58\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-cache\">\u9ad8\u901f\u7f13\u5b58<\/a><\/h2>\n<h2 id=\"\u968f\u65f6\u53ef\u7528\u6837\u4f8b\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-ready-to-go\">\u968f\u65f6\u53ef\u7528\u6837\u4f8b<\/a><\/h2>\n<h2 id=\"\u641c\u7d22\u5f15\u64ce\u4f18\u5316\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-seo\">\u641c\u7d22\u5f15\u64ce\u4f18\u5316<\/a><\/h2>\n<h3 id=\"\u6807\u9898\u63cf\u8ff0\u548c\u5173\u952e\u5b57\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-seo\">\u6807\u9898\uff0c\u63cf\u8ff0\u548c\u5173\u952e\u5b57<\/a><\/h3>\n<h3 id=\"\u94fe\u63a5\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-seo\">\u94fe\u63a5<\/a><\/h3>\n<h3 id=\"\u6587\u672c\u5185\u5bb9\">\u6587\u672c\u5185\u5bb9<\/h3>\n<h1>\u00a0<\/h1>\n<hr \/>\n<p>\u5728\u7ebf\u6587\u6863\u76ee\u524d\u6ca1\u6709\u4e2d\u6587\u7248\uff0c\u53ea\u6709English Version\uff0c\u4ee5\u4e0b\u662f English Version \u7684\u76ee\u5f55\u5217\u8868\u3002<\/p>\n<hr \/>\n<p>. . .<\/p>\n<hr \/>\n<p>Contents in\u00a0English Version<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h1 id=\"hanjst-overview\">Hanjst Overview<\/h1>\n<p><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2019\/06\/hanjst-logo.201901.jpg\" alt=\"Hanjst Logo\" \/><\/p>\n<p><strong>Hanjst<\/strong>\u00a0is an\u00a0<strong>Han<\/strong>\u00a0<strong>J<\/strong>ava<strong>S<\/strong>cript\u00a0Template, and its language and engine for HTML and Web.<\/p>\n<p>\u201c<strong>\u6c49\u5409\u65af\u7279<\/strong>\u201d is its Chinese name.<\/p>\n<h2 id=\"get-started\">Get Started<\/h2>\n<h3 id=\"what-is-hanjst-and-why\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/what-is-hanjst\">What is Hanjst and Why?<\/a><\/h3>\n<h3 id=\"installation\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-install\">Installation<\/a><\/h3>\n<h3 id=\"configurations\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-config\">Configurations<\/a><\/h3>\n<h4 id=\"debugging\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-debug\">Debugging<\/a><\/h4>\n<h3 id=\"quick-start\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-ready-to-go\">Quick Start<\/a><\/h3>\n<h3 id=\"misc\">Misc.<\/h3>\n<h1 id=\"hanjst-for-templates-designers\">Hanjst for Templates Designers<\/h1>\n<h2 id=\"basic-syntax\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-syntax\">Basic Syntax<\/a><\/h2>\n<h2 id=\"variables-and-modifiers\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-variable\">Variables and Modifiers<\/a><\/h2>\n<h2 id=\"functions\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-function\">Functions<\/a><\/h2>\n<h3 id=\"built-in-functions\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-function\">Built-in Functions<\/a><\/h3>\n<h3 id=\"custom-functions\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-function-2\">Custom Functions<\/a><\/h3>\n<h2 id=\"hanjst-run-in-server-side\">Hanjst Run in Server-side<\/h2>\n<h3 id=\"nodejs\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-nodejs\">Node.js<\/a><\/h3>\n<h1 id=\"hanjst-for-back-end-developers\">Hanjst for Back-end Developers<\/h1>\n<h2 id=\"hanjst-class\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-class\">Hanjst Class<\/a><\/h2>\n<h2 id=\"server-side-replacements\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-replacement\">Server-side Replacements<\/a><\/h2>\n<h2 id=\"data-in-json\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/data-in-json\">Data in JSON<\/a><\/h2>\n<h2 id=\"resources\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">Resources<\/a><\/h2>\n<h3 id=\"paths\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">Paths<\/a><\/h3>\n<h3><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">Scripts<\/a><\/h3>\n<h4 id=\"third-party-libraries\">Third-party Libraries<\/h4>\n<h3><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-resource\">Images<\/a><\/h3>\n<h2 id=\"caching\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-cache\">Caching<\/a><\/h2>\n<h2 id=\"a-ready-to-go\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-ready-to-go\">A Ready-to-go<\/a><\/h2>\n<h2 id=\"search-engine-optimization\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-seo\">Search Engine Optimization<\/a><\/h2>\n<h3 id=\"title-description-and-keyword\"><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-seo\">Title, Description and Keyword<\/a><\/h3>\n<h3><a href=\"https:\/\/wadelau.github.io\/hanjst\/hanjst-seo\">Links<\/a><\/h3>\n<h3 id=\"plain-contents\">Plain Contents<\/h3>\n<p>&nbsp;<\/p>\n<hr \/>\n<hr \/>\n<p><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2019\/06\/hanjst-logo.201901.jpg\" \/><br \/>Hanjst\u662f\u4e00\u79cd\u57fa\u4e8eJavaScript\u7684\u6a21\u677f\u8bed\u8a00\u53ca\u89e3\u6790\u5f15\u64ce\uff0c\u5979\u8fd0\u884c\u5728\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u7aef\u3002<\/p>\n<p>Hanjst\u80fd\u591f\u8868\u8ff0\u903b\u8f91\u63a7\u5236\uff0c\u80fd\u591f\u5b9e\u73b0\u4e0e\u670d\u52a1\u5668\u7aef\u6a21\u5757\u8bed\u8a00\u76f8\u540c\u7684\u529f\u80fd\u3002<\/p>\n<ul>\n<li>\n<p>Hanjst\u5f53\u5b8c\u5168\u5728\u5ba2\u6237\u7aef\u89e3\u6790\u65f6\uff0c\u8282\u7701\u670d\u52a1\u5668\u7aef\u8ba1\u7b97\u8d44\u6e90;<\/p>\n<\/li>\n<li>\n<p>Hanjst\u6a21\u677f\u8bed\u8a00\u72ec\u7acb\uff0c\u4e0d\u4e0e\u670d\u52a1\u5668\u7aef\u8d44\u6e90\u505a\u4efb\u4f55\u7ed1\u5b9a\uff1b<\/p>\n<\/li>\n<li>\n<p>\u7eaf\u7cb9\u7684MVC\uff0c\u5c42\u95f4\u6570\u636e\u7528JSON\u683c\u5f0f\u4f20\u9012\uff1b<\/p>\n<\/li>\n<li>\n<p>\u5e38\u89c1\u6a21\u677f\u8bed\u8a00\u529f\u80fd\u5168\u652f\u6301\uff0c\u9644\u5e26\u590d\u6742\u800c\u5f3a\u5927\u7684JavaScript\u7f16\u7a0b\u80fd\u529b\uff1b<\/p>\n<\/li>\n<li>\n<p>\u65e0\u5b66\u4e60\u6210\u672c\uff0c\u76f4\u63a5\u4f7f\u7528JavaScript\u4e66\u5199\u6a21\u677f\u8bed\u8a00\uff1b<\/p>\n<\/li>\n<li>\n<p>\u2026.<\/p>\n<\/li>\n<\/ul>\n<p>Hanjst is a JavaScript-based templating language and parsing engine that runs on both the client-side and\/or server-side.<\/p>\n<p>Hanjst can express logical control and achieve the same functionality as the server-side templating languages.<\/p>\n<ul>\n<li>\n<p>Hanjst\u2019s Run-time in client-side, reduce computing render in server-side;<\/p>\n<\/li>\n<li>\n<p>Hanjst is Language-independent, not-bound with back-end scripts or languages;<\/p>\n<\/li>\n<li>\n<p>Totally-isolated between MVC, data transfer with JSON;<\/p>\n<\/li>\n<li>\n<p>Full-support template tags with built-in logic and customized JavaScript functions;<\/p>\n<\/li>\n<li>\n<p>No more tags languages to be learned, just JavaScript;<\/p>\n<\/li>\n<li>\n<p>\u2026.<\/p>\n<\/li>\n<\/ul>\n<p id=\"hanjst\u6982\u8ff0\">\u00a0<\/p>\n<hr \/>\n<p>\u6cb3\u5317-\u5f20\u5bb6\u53e3\uff0c\u5343\u7c73\u9ad8\u539f\uff0c\u5929\u9ad8\u4e91\u6de1\uff0c\u897f\u5317\u98ce\u70c8\uff0c\u9152\u8089\u9999\u6df7.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u7684\u68b3\u7406\u603b\u7ed3\u3001\u7cbe\u5fc3\u7f16\u5236\uff0c\u6c49\u5409\u65af\u7279Hanjst\u5728\u7ebf\u6587\u6863\u548cAPI\u5df2\u7ecf\u5b8c\u6210\u521d &hellip; <a href=\"https:\/\/ufqi.com\/blog\/hanjst-online-doc-and-api\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[301,6,2],"tags":[293,316,297,296,295,294],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2082"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2082"}],"version-history":[{"count":3,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2082\/revisions"}],"predecessor-version":[{"id":2085,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2082\/revisions\/2085"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}