Add 'Kentico' dialect for Thymeleaf engine
还没有人认领这个 Issue。
评估
调研方向
首先阅读链接的 Thymeleaf 扩展指南,并检查 SDK 的内联链接项渲染引擎和应用程序渲染引擎的结构。定义该方言的表达式和内容解析器,然后根据设计指南的要求,验证它是否可以在两个渲染上下文中注册。
由索引模型根据 Issue 内容生成。
描述
Motivation
Say your application needs to show an alert text box in blue or red background depending on the user’s role (admin or non-admin). You can compute this with conditional expressions on your template, but too many conditions could render your code a little bit hard to read …
Solution: create a new Thymeleaf attribute called alertclass and an attribute processor for it (Java code that will compute the right CSS class), and package it into your own MyOwnDialect Thymeleaf dialect. Add this dialect to your template engine with the th prefix (same as the SpringStandard dialect) and you’ll now be able to use th:alertclass="${user.role}".
(Taken from the docu.)
Design guidelines
This Thymeleaf dialect should provide various expressions and content resolvers to simplify usage of KenticoCloud objects from within Thymeleaf. This dialect can be registered by an application's Thymeleaf rendering engine, as well as should be registered in the inline linked items rendering engine provided with the SDK.
Reference
- 主要语言
- Java
- 星标
- 17
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kontent-ai/java-packages 的其他 Issue
-
hacktoberfest refactoring
难度 2/5 1-3 小时 新手友好度 45/100
kontent-ai/java-packages#142 · 1 条评论 ·
-
hacktoberfest
难度 4/5 3-5 天 新手友好度 35/100
kontent-ai/java-packages#140 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
kontent-ai/java-packages#135 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
kontent-ai/java-packages#134 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
kontent-ai/java-packages#128 · 3 条评论 ·
查看 kontent-ai/java-packages 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
openhab/openhab-addons#22512 ·
维护者通常 1 天内回复
-
help wanted maintenance
难度 2/5 1-3 小时 新手友好度 84/100
apache/maven-project-info-reports-plugin#704 ·
维护者通常 1 天内回复
-
help wanted maintenance
难度 2/5 1-3 小时 新手友好度 78/100
apache/maven-ejb-plugin#261 ·
维护者通常 1 天内回复
-
help wanted maintenance
难度 2/5 1-3 小时 新手友好度 78/100
apache/maven-archetype#1086 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复