Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
45710c3a
authored
2013-01-06 10:15:08 +0800
by
xiemengjun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add TemplateCache
1 parent
8e90ddd5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
beego.go
beego.go
View file @
45710c3
...
...
@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/astaxie/session"
_
"github.com/astaxie/session/providers/memory"
"html/template"
"net/http"
"os"
"path"
...
...
@@ -15,6 +16,7 @@ var (
AppName
string
AppPath
string
StaticDir
map
[
string
]
string
TemplateCache
map
[
string
]
*
template
.
Template
HttpAddr
string
HttpPort
int
RecoverPanic
bool
...
...
@@ -36,6 +38,7 @@ func init() {
BeeApp
=
NewApp
()
AppPath
,
_
=
os
.
Getwd
()
StaticDir
=
make
(
map
[
string
]
string
)
TemplateCache
=
make
(
map
[
string
]
*
template
.
Template
)
var
err
error
AppConfig
,
err
=
LoadConfig
(
path
.
Join
(
AppPath
,
"conf"
,
"app.conf"
))
if
err
!=
nil
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment