razorengine Questions

4

Hey i'm currently workin on a project that has implemented angularjs, i was wondering if there is a way around to use angular value in Html Helper? This is what I can't get to work: @Html.ActionL...
Armistead asked 7/8, 2014 at 12:40

3

Our domain model properties are all "Internal" to protect the BDD approach we have taken. I really like making everything internal. Recently I am trying to get the RazorEngine to process a templat...
Weatherby asked 16/2, 2017 at 4:30

1

Solved

string template = "Hello @Model.Name, welcome to RazorEngine!"; var result = Engine.Razor.RunCompile(template, "templateKey", null, new { Name = "World" }); Now i update my existing template to a...
Ballad asked 8/2, 2017 at 17:31

0

I wanted to start a small campaign of about 400-500 emails and I tested the email with mail-tester.com The problem is that I've got these 2 errors and nobody on the internet knows an answer for it...
Thuthucydides asked 21/9, 2016 at 18:5

1

Solved

How to force C# run-time to load an assembly that is used only in a .cshtml file which is a Razor template? I am using the JSON serialization functionality from Newtonsoft, the assembly is referen...
Michaels asked 5/9, 2016 at 16:3

3

Solved

ASP .NET 4.6 MVC controller creates Razor Template at runtime and runs it using RazorEngine. One big template causes Stack Overflow exception when running from Visual Studio or Method CompiledRazor...
Schnell asked 17/8, 2016 at 18:59

3

I am trying to configure RazorEngine so that intellisense works on views. I add RazorEngine and Microsoft.AspNet.Mvc using nuget. I create TestView.cshtml and declare @model MyModel but it says The...
Girard asked 11/11, 2014 at 10:9

1

In ASP.NET MVC I could parse Razor scripts like this: string template = "It is @DateTime.Now.ToString()"; string result = Razor.Parse(template); But this static doesn't exist in core. Also I've...
Shattuck asked 29/6, 2016 at 12:22

3

ViewBag error: "One or more types required to compile a dynamic expression cannot be found. Are you missing an assembly reference?" All HTML Helper methods contain the error: "The type argument f...
Flowing asked 3/7, 2014 at 23:52

1

Solved

I'm trying to figure out an issue we've been having lately with RazorEngine 3.7.5 and higher (tried 3.7.7) Exception: System.ArgumentException: Please either set a template manager to templates...
Koffman asked 19/2, 2016 at 18:33

3

Solved

I am using RazorEngine to parse templates from html snippets on a web page. (This is a legacy system that switching to Mvc Razor views isn't possible, so we are switching small sections over to usi...
Bunkmate asked 17/10, 2013 at 15:47

1

I am trying to migrate some existing code from MVC5 to MVC6 and I am having difficulty with this particular code: Engine.Razor.RunCompile(File.ReadAllText(emailTemplatePath), "emailTemplateKey",...
Bible asked 27/1, 2016 at 7:54

1

I'm trying to build a custom view location system. public class myViewLocationExpander : IViewLocationExpander { private myDBContext _context; public myViewLocationExpander (myDBContext context...
Hypertension asked 22/1, 2016 at 18:39

2

Solved

When I render my template without the EditHistory member, this works. However, when I add that additional member that is within my application I get an exception Could not load file or assembly 'Mo...
Arterio asked 3/12, 2015 at 5:21

2

Solved

I'd like to add a razor model variable into a resource file string. I've tried the following but the variable is rendered as a literal: attempt 1: "There is a variable @Model.here" attempt 2: ...
Allsopp asked 16/10, 2015 at 22:49

2

Solved

I'm using the Razor Engine (razorengine.codeplex.com) in a non-MVC environment. I compile templates that are stored in files and use @inherits for intellisense support. RazorEngine Assembly Custo...
Petitioner asked 16/5, 2011 at 11:59

1

Solved

How can I get @Url.Content() working in my _Layout.cshtml when RazorEngine is being used from ASP.NET Web API? RazorEngine (v.3.7.2) only deals with the Razor syntax and not the additional helper ...
Haug asked 8/9, 2015 at 14:55

3

Currently, I am using RazorEngine v2.1 as part of a background process that sends templated emails (thousands of them). To speed things up, the templates are compiled with their md5 sum as a name. ...
Impeller asked 16/1, 2013 at 23:14

1

I was searching for this "holy grail" for a long time. I went through massive amount of plugins, projects, solutions etc. Each solution missing something. But first thing first. What we want to ac...
Wad asked 29/7, 2015 at 8:14

1

Solved

I am passing an anonymous type into a dynamic partial view as part of the @model, and one of the properties is a string that contains some HTML. When I use the HtmlHelper methods to render the prop...

1

Solved

After upgrading from Razor templating engine 3.3.0 to 3.6.1 I've run into issues with precompiled templates - what happens is that even the trivial sample given on their page: using System; using ...
Jp asked 5/3, 2015 at 13:2

1

Solved

RazorEngine.dll version is 3.2. Example code inside a razor engine template (cshtml file) : @foreach(var row in Model.Trades) { <tr> <td> @string.Format("{0:N2}",row.Amount) &...
Haiduk asked 5/3, 2015 at 0:43

2

Solved

I'm trying to compile a razor file with this line RazorEngine.Razor.Parse("Hello world"); But it just throws base {System.Exception} = {"Unable to compile template. Source file 'C:\...
Gamogenesis asked 4/4, 2013 at 7:50

1

Solved

I'm using RazorJS in my MVC4 application for using the Razor syntax "@" in the Js file. //Code: @Html.RazorJSInclude("~/Scripts/Application/Transactions.js") <button id="btnSearch" name="subm...
Bushwhacker asked 30/12, 2014 at 8:58

4

I have created a windows service to build and send emails. I am using the Razor Engine to parse the email templates. I am using a dynamic ExpandoObject to create the model. My problem is when eac...
Glaze asked 6/9, 2012 at 13:45

© 2022 - 2024 — McMap. All rights reserved.