summaryrefslogtreecommitdiff
path: root/templates/_specific_renderer_matching.rs.template
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-04 00:27:16 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-04 00:27:16 +0800
commitd19e5d84ee21502fd3440511d4ffb1ee1f49d3b2 (patch)
treefb8efef6f8e9a26c5b60d4ac220b11d6c6f0775e /templates/_specific_renderer_matching.rs.template
parent7ee0d3f20c875e7405bb8442c5eb0228d1599a03 (diff)
Refactor build system and implement complete renderer system
- Split monolithic build.rs into modular async generators - Add renderer override system with type-safe dispatch - Implement command template macro for consistent command definitions - Add proc-macro crates for command and renderer systems - Reorganize directory structure for better separation of concerns - Update documentation to reflect new architecture
Diffstat (limited to 'templates/_specific_renderer_matching.rs.template')
-rw-r--r--templates/_specific_renderer_matching.rs.template14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/_specific_renderer_matching.rs.template b/templates/_specific_renderer_matching.rs.template
new file mode 100644
index 0000000..9b3765f
--- /dev/null
+++ b/templates/_specific_renderer_matching.rs.template
@@ -0,0 +1,14 @@
+match type_name_str {
+// MATCHING
+// -- TEMPLATE START --
+ "OutputTypeName" => {
+ RendererType::render(
+ &data
+ .downcast::<OutputType>()
+ .unwrap(),
+ )
+ .await
+ }
+// -- TEMPLATE END --
+ _ => Err(CmdRenderError::RendererNotFound(type_name)),
+}