This project has moved and is read-only. For the latest updates, please go here.

To see IsolatedRazor in action you can check the IsolatedRazor.Demo.* projects.

Short usage example:

using (var templater = new IsolatedRazor.RazorTemplater(templatePath))
    string result = await templater.ParseAsync("MyTemplate",
        "<div>Hello @Model.Name! It is @DateTime.Now</div>", timestamp, model).ConfigureAwait(false);

Constructing the IsolatedRazor.RazorTemplater instance is rather slow, so if you can you should reuse it.

Last edited Oct 19, 2014 at 4:28 PM by cfi, version 5