Skip to content

Native library for templating. Intended use is for push notifications, SMS and Email systems, templating not only the text itself but also other specific attributes of each platform.

License

Notifications You must be signed in to change notification settings

denstorti/PushMate.TemplatingService

Repository files navigation

PushMate Templating Service

Build status

Native C# library for templating.

Intended use is for push notifications, SMS and Email systems, templating not only the text itself but also other specific attributes of each platform. For example: sound in push notifications. Use case: send push notifications messages containing the Name and Balance of each customer and play the sound they choose when it arrives.

  string baseTemplate = "Hello $name$. Your account balance is $$balance$. Thanks $name$!";
  
  var dictVariables = new Dictionary<string, string>
  {
      { "name", "Denis"},
      { "balance", "1000.00"}
  };

  string result = TemplateService.ApplyTextTemplate(baseTemplate, dictVariables);

  Assert.Equal("Hello Denis. Your account balance is $1000.00. Thanks Denis!", result);

About

Native library for templating. Intended use is for push notifications, SMS and Email systems, templating not only the text itself but also other specific attributes of each platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages