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? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -