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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -