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

自定义模板变量解析规则问题 #123

Closed
zjhch123 opened this issue May 18, 2020 · 0 comments
Closed

自定义模板变量解析规则问题 #123

zjhch123 opened this issue May 18, 2020 · 0 comments
Assignees
Milestone

Comments

@zjhch123
Copy link

zjhch123 commented May 18, 2020

描述问题

自定义皮肤开发时遇到了需要通过自定义模板变量配置皮肤头图的需求

在实现时发现如果在同一个自定义模板变量中存在多个=时解析结果似乎不符合预期。

Example

headerBgImage=https://static.b3log.org/images/brand/solo-32.png?id=1

image

image

期待的结果

对于 headerBgImage=https://static.b3log.org/images/brand/solo-32.png?id=1customVars['headerBgImage']应该返回https://static.b3log.org/images/brand/solo-32.png?id=1

其他信息

Solo 版本为 4.0

@88250 88250 self-assigned this May 18, 2020
@88250 88250 changed the title 自定义模板变量解析规则优化 自定义模板变量解析规则问题 May 18, 2020
@88250 88250 added this to the 4.1.0 milestone May 18, 2020
@88250 88250 closed this as completed in d19b6e6 May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants