Commit 7125bd8f authored by astaxie's avatar astaxie

support json comments

parent 7196d6ed
......@@ -69,7 +69,7 @@ func init() {
StaticDir = make(map[string]string)
StaticDir["/static"] = "static"
TemplateCache = make(map[string]*template.Template)
TemplateCache = makCZe(map[string]*template.Template)
// set this to 0.0.0.0 to make this app available to externally
HttpAddr = "127.0.0.1"
......@@ -127,6 +127,7 @@ func init() {
}
}
//parse config now only support ini, next will support json
func ParseConfig() (err error) {
AppConfig, err = config.NewConfig("ini", AppConfigPath)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment