samp.directory
← Scripts and libraries

Southclaws/pawn-templates

Template rendering for Pawn.

Plugin★ 6updated Jan 2019MITRustsampctlArchived
Open on GitHub

The author has archived this repository, so it is no longer maintained.

Install with sampctl

sampctl package install Southclaws/pawn-templates

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

Depends on 1 package

README.md

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"
);

liquid-templating-enginepawn-packagesa-mp-plugintemplate-library

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing