Bladeren bron

Add readme.md

xcbosa-itx 2 jaren geleden
bovenliggende
commit
80ef21432b
2 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 5 0
      controller/readme.md
  2. 5 0
      data/html/readme.md

+ 5 - 0
controller/readme.md

@@ -0,0 +1,5 @@
+# Controller Files
+
+This folder contains the entry point of the request processing. Some files are auto-generated by CMakeList.txt, intend to packaging all js/css/... resources file to the final binary needs by the website.
+
+这个目录包括请求处理的入口点。部分文件是CMakeList.txt生成的,它的作用是将网站需要的js/css/...资源文件转换为写死的C++代码,将他们一同编译进最终的可执行文件中,从而在部署时仅需要一个可执行文件,而不需要任何奇奇怪怪的资源文件。

+ 5 - 0
data/html/readme.md

@@ -0,0 +1,5 @@
+# HTML Files
+
+This folder only contains developing resources files, and not needed to copy to the dest server when deploy. CMakeList.txt will package all required resources files to final binary, for more informations, please see /controllers/readme.md.
+
+这个目录中的文件仅在开发时使用,且不应该在此处编写HTML文件(而应该使用xc::processor::template中提供的构造方法,写死,写死是好事,我不能理解为什么部署一个系统需要那么多的*配置文件*和*资源文件*)。CMakeList.txt会在编译时将需要的文件生成C++代码放到Controller目录中,具体请参考/controllers/readme.md。