(三)nimlang web開發 index.html jester

       顯然,在實際開發中,咱們確定是須要用到 .html文件的。這一點,毫無疑問(總不能在.nim裏面寫各類的HTML吧。。。)。css

       jester使用.html也很簡單。以下圖。html

建一個「public"文件夾,裏面放.html  .js .css各類web須要的文件。以下圖。web

 

有興趣研究jester.nim 的同窗能夠查查其源代碼。code

能夠在」 let publicRequested = jes.settings.staticDir / cgi.decodeUrl(req.pathInfo)   「下面,echo一下路徑什麼。研究下jester的各類原理。htm

相關文章
相關標籤/搜索