render-text-templates
Installation
SKILL.md
Render Text Templates in ABP
ABP's text templating system turns a named template + a model into rendered content (an HTML email body, an SMS text, a report fragment — anything). It is independent of what you do with the result: rendering is this skill; sending the output as email is the send-emails skill.
All APIs below are from Volo.Abp.TextTemplating.*.
When to Use
- Defining named text templates and rendering them with Scriban or Razor.
- Localizing template content (inline, or one file per culture) and using layouts.
- Sourcing template content from the Virtual File System or a custom contributor.
- Rendering a template to a string to feed into email, SMS, a document, etc.
When Not to Use
- Sending the rendered body as email (
IEmailSender, MailKit, SMTP settings, queuing) — use the send-emails skill. - Setting up the Virtual File System for the
.tplfiles (embedding, override, live-editing) — use the manage-virtual-files skill. - Defining the localization resource / keys a template's
Lcalls resolve against — use the localize-applications skill.