diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-23 03:18:53 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-23 03:18:53 +0800 |
| commit | 5b5e3b2b9375fea3e47c28c2a4d47ef4fe349cd5 (patch) | |
| tree | 8ce34729fda126e6a06ca881911e19a2c429441c /templates/_renderers.rs.template | |
| parent | 9880a6409e8eed4e1210406603d8aff65fac6a0c (diff) | |
Rename generated files with leading underscore
- Rename template files to have .template extension
- Rename generated source files to start with underscore
- Update .gitignore to ignore all files starting with underscore
- Update build.rs and deploy.ps1 to reflect new names
Diffstat (limited to 'templates/_renderers.rs.template')
| -rw-r--r-- | templates/_renderers.rs.template | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/_renderers.rs.template b/templates/_renderers.rs.template new file mode 100644 index 0000000..37f0f1b --- /dev/null +++ b/templates/_renderers.rs.template @@ -0,0 +1,16 @@ +match renderer_str { +// MATCH +// -- TEMPLATE START -- + "<<NAME>>" => { + Self::process_with_renderer::< + RendererType + >(args, ctx) + .await + } +// -- TEMPLATE END -- + _ => { + return Err(CmdProcessError::Render(CmdRenderError::RendererNotFound( + renderer_str.to_string(), + ))); + } +} |
