c# - Efficient plain text template engine -


i have simple alert system grabs number on web, mix them pre-defined text template alert, , send clients. alert quite simple plain text, not expect other plain text, numbers, simple functions(such ifthenelse), quicker better. there existing open source solutions this? thanks!

i use razor engine this.

a templating engine built upon microsoft's razor parsing technology. razorengine allows use razor syntax build robust templates

a simple example page:

string template = "hello @model.name! welcome razor!"; string result = razor.parse(template, new { name = "world" }); 

and result hello world! welcome razor!


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -