Skip to content

Commit

Permalink
Merge pull request #1 from OblivionOcean/v1.0.4
Browse files Browse the repository at this point in the history
[fix] 修复由于优化代码层级导致的模板引入覆盖问题
  • Loading branch information
Fgaoxing authored Feb 9, 2025
2 parents 3dd16fc + 3868b2a commit ef0cb34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ func (p *Parser) pHTML() {

func (p *Parser) pInclude() {
fpath := path.Join(path.Dir(p.fpath), strings.Trim(p.text[1:p.endCursor], " \"\t\n\r"))
tmp, rawCode, _ := p.Parse(fpath)
np := Parser{}
tmp, rawCode, _ := np.Parse(fpath)
rawCode += rawCode
for i := 0; i < len(tmp); i++ {
p.root.addChild(tmp[i])
Expand Down

0 comments on commit ef0cb34

Please sign in to comment.