Domemtech.StringTemplate4
C# StringTemplate, v4
Install / Use
/learn @kaby76/Domemtech.StringTemplate4README
Antlr4 StringTemplates for C# Library
This is a fork of the C# String Template repo. The old repo here has not been maintained for years, doesn't build with the Net6 SDK or VS2022. Since I only need to use StringTemplate4, and not the rest of the software in the repo, I removed all but the essentials for StringTemplate.
- Removed AntlrBuildTasks -- this was used to run the tool and generate parsers for StringTemplate grammars, which are in Antlr3. Since AntlrBuildTask is removed, the grammars can no longer be updated. This is planned as any further changes ongoing should be with an Antlr4 grammar.
- Moved Antlr3.Runtime to internal Antlr4.StringTemplate -- this was moved so that there is no external dependence on the Antlr3 runtime, and no confusion as to what runtime one is using when this library is used.
- Removed Antlr3.Targets -- not needed.
- Removed Antlr3 -- not needed.
- Removed Antlr3.Tests -- not needed.
- Removed Antlr3.StringTemplate -- not needed.
- Removed Antlr4.StringTemplate.Visualizer -- not needed.
- Removed build -- not needed.
- Removed doc -- not needed.
This library is a "netstandard2.0" library, which should be compatible with up-to-date frameworks. I have uploaded it to NuGet: Domemtech.StringTemplate4.
History
As far as I can tell, the start of changes in StringTemplate4 for Java that wasn't applied to the C# version was this commit. That puts the code divergence since at least July 16, 2016.
Documentation
Refer to the StringTemplate Home for instructions on how to use. Note, the API classes and methods differ from the doc. E.g., ST in Java is Template in C#. Why would it be any other way?
Ken Domino March 12, 2021
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
