From 26217a0c05a1721e3f7a598181e52d02b6b4d9e6 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 9 Mar 2024 09:55:36 +0800 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 529eb88..b198770 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Execute `gop run .` and visit http://localhost:8080/p/123, you will get: #### YAP Template -In most cases, we will not use the `html` directive to return a html page, but use the yap template. See [get_p_#id.yap](demo/classfile2_blog/get_p_%23id.yap): +In most cases, we will not use the `html` directive to return a html page, but use the `yap` template engine. See [get_p_#id.yap](demo/classfile2_blog/get_p_%23id.yap): ```coffee yap "article", { @@ -88,6 +88,14 @@ yap "article", { } ``` +It means we need to find a template called `article` to render. See [yap/article_yap.html](demo/classfile2_blog/yap/article_yap.html): + +```html + + +Article {{.id}} + +``` #### Run at specified address