Skip to content

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

Closed
@zjhch123

Description

@zjhch123

描述问题

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

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

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

Activity

self-assigned this
on May 18, 2020
changed the title [-]自定义模板变量解析规则优化[/-] [+]自定义模板变量解析规则问题[/+] on May 18, 2020
added this to the 4.1.0 milestone on May 18, 2020
added a commit that references this issue on May 18, 2020
d19b6e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@zjhch123

      Issue actions

        自定义模板变量解析规则问题 · Issue #123 · 88250/solo