Skip to content
This repository has been archived by the owner on Sep 22, 2019. It is now read-only.

Southclaws/pawn-templates

Repository files navigation

Template Engine for Pawn

TemplateBanned = CreateTemplate(
"Your account {{name}} has been banned!\

Reason: {{reason}}\
Duration: {{duration}}\
If you disagree, please file an appeal at: {{forum}}\
");

// ...

new dest[1024];
RenderTemplate(TemplateBanned, dest,
    "name", playerName,
    "reason", reason,
    "forum", "https://forum.website.com"
);