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!