最近web服務器知識,中間懶癌犯了,斷了一兩天後思路有點接不上來,手頭上也有其他事情要做,先簡單的總結下學習進度,很多重要的功能都沒跑通,目前flask只是簡單實現路由分顯示不同的結果,cgi可以根據不同的靜態資源或者py腳本文件路徑顯示不同的結果。目前來説文章亮點就是解耦做的還行,有一定的可擴展性
簡單的仿flask實現路由分發
from wsgiref.simple_server import
前言
本篇接着上篇 underscore 系列之實現一個模板引擎(上)。
鑑於本篇涉及的知識點太多,我們先來介紹下會用到的知識點。
反斜槓的作用
var txt = "We are the so-called "Vikings" from the north."
console.log(txt);
我們的本意是想打印帶 "" 包裹的 Vikings 字符串,但是在 JavaScript 中,字符串
Custom Exception
ExceptionController
namespace KitBaseBundle\Controller;
use Symfony\Bundle\TwigBundle\Controller\ExceptionController as BaseController;
use Symfony\Component\HttpF