Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我这边在测试demo的时候遇到几个问题 #7

Closed
zj77086539 opened this issue Dec 12, 2019 · 2 comments
Closed

我这边在测试demo的时候遇到几个问题 #7

zj77086539 opened this issue Dec 12, 2019 · 2 comments

Comments

@zj77086539
Copy link

1.tmplate 中模板标记不生效${include .tplMain .}
2.需要自己手动修改config
3.chat.go cache.SetIfNotExist 聊天消息时间间隔不生效

@ringlog
Copy link

ringlog commented Dec 28, 2019

1.tmplate 中模板标记不生效${include .tplMain .}
2.需要自己手动修改config
3.chat.go cache.SetIfNotExist 聊天消息时间间隔不生效

同第一个问题

@lee997
Copy link

lee997 commented Sep 9, 2020

同遇上模板解析标签问题

项目为 gf init生成的项目, 配置文件config.toml里模板默认配置为

[viewer]
Path = "template"
DefaultFile = "index.html"
Delimiters = ["${", "}"]

官方example里对模板的解析为 {{ }}

需要修改使用方式或者配置

[viewer]
Path = "template"
DefaultFile = "index.html"
Delimiters = ["{{", "}}"]

@gqcn gqcn closed this as completed Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants