Ancestry.Daisy.Documentation.MVC.DocumentationSetExtentions.Compile C# (CSharp) Method

Compile() private static method

private static Compile ( string resource ) : void
resource string
return void
        private static void Compile(string resource)
        {
            var assembly = typeof(DocumentationSetExtentions).Assembly;
            var view = assembly.GetManifestResourceStream(resource);
            RazorEngine.Razor.Compile(new StreamReader(view).ReadToEnd(),resource);
        }