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
7c3d1d34
authored
2013-12-19 19:52:01 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix type HasTemplateEXt to HasTemplateExt
1 parent
e4816718
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
template.go
template.go
View file @
7c3d1d3
...
...
@@ -68,7 +68,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
if
f
.
IsDir
()
||
(
f
.
Mode
()
&
os
.
ModeSymlink
)
>
0
{
return
nil
}
if
!
HasTemplateE
X
t
(
paths
)
{
if
!
HasTemplateE
x
t
(
paths
)
{
return
nil
}
...
...
@@ -88,7 +88,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
return
nil
}
func
HasTemplateE
X
t
(
paths
string
)
bool
{
func
HasTemplateE
x
t
(
paths
string
)
bool
{
for
_
,
v
:=
range
BeeTemplateExt
{
if
strings
.
HasSuffix
(
paths
,
"."
+
v
)
{
return
true
...
...
@@ -164,7 +164,7 @@ func getTplDeep(root, file, parent string, t *template.Template) (*template.Temp
if
tlook
!=
nil
{
continue
}
if
!
HasTemplateE
X
t
(
m
[
1
])
{
if
!
HasTemplateE
x
t
(
m
[
1
])
{
continue
}
t
,
_
,
err
=
getTplDeep
(
root
,
m
[
1
],
file
,
t
)
...
...
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