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

[Proposal] 使用 XML 定义卡片消息 #8

Closed
AlisaAkiron opened this issue Mar 11, 2024 · 1 comment · Fixed by #9
Closed

[Proposal] 使用 XML 定义卡片消息 #8

AlisaAkiron opened this issue Mar 11, 2024 · 1 comment · Fixed by #9
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@AlisaAkiron
Copy link
Contributor

卡片消息这类渲染成 UI 的组件,使用 XML 语言定义比较直观(类似于 HTML、XAML)。相比使用 CardBuilder,使用 XML 文件来定义还可以在不改动代码的情况下修改预定义的卡片。对于需要运行时才能决定的值,可以使用 Liquid Template 对 XML 进行修改。

目前已经实现了使用 XSD 来定义 XML 格式,和将 XML 反序列化至 List<ICard>

如果觉得可以我再发起 PR

@gehongyan gehongyan self-assigned this Mar 16, 2024
@gehongyan gehongyan added enhancement New feature or request good first issue Good for newcomers labels Mar 16, 2024
@gehongyan
Copy link
Owner

很棒!感谢提议!欢迎 PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants