Skip to content

提供 Sprig 模板渲染 API #7767

Closed
Closed
@svchord

Description

@svchord

在什么情况下你需要该特性?In what scenarios do you need this feature?

解析日记保存路径

描述可能的最优解决方案 Describe the optimal solution

API: /api/template/renderSprig
Request Body: { template: '/daily note/{{now | date "2006/01"}}/{{now | date "2006-01-02"}}'  }
Response Body: { data : '/daily note/2006/01/2006-01-02'  }

描述候选的解决方案 Describe the candidate solution

No response

其他信息 Other information

No response

Activity

changed the title [-]请输入特性提议标题 Please enter the title of the feature request[/-] [+]Sprig 模板解析 API[/+] on Mar 24, 2023
self-assigned this
on Mar 24, 2023
added this to the 2.8.1 milestone on Mar 24, 2023
changed the title [-]Sprig 模板解析 API[/-] [+]支持 Sprig 模板解析 API[/+] on Mar 24, 2023
changed the title [-]支持 Sprig 模板解析 API[/-] [+]提供 Sprig 模板解析 API[/+] on Mar 24, 2023
changed the title [-]提供 Sprig 模板解析 API[/-] [+]提供 Sprig 模板渲染 API[/+] on Mar 24, 2023
added a commit that references this issue on Mar 24, 2023
added a commit that references this issue on Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@svchord

      Issue actions

        提供 Sprig 模板渲染 API · Issue #7767 · siyuan-note/siyuan