Questions tagged [viewengine]

262 questions
3
votes
1 answer

Node view engines using Angular

Is there a node view engine that works in conjunction with Angular? Coming from a .NET background VASH seemed like it'd make the most sense however I wasn't able to render a basic {{ 1 + 3 }} expression to ensure my Angular import is working. I also…
3
votes
1 answer

Setup View engine in ASP.NET MVC6 to work with AspNet.TestHost.TestServer in Unit Tests

How to setup view engine in ASP.NET MVC 6 to work with test host created by TestServer. I've tried to implement the trick from MVC 6 repo: [Fact] public async Task CallMvc() { var client = GetTestHttpClient(); //call to HomeController.Index…
pocheptsov
  • 1,936
  • 20
  • 24
3
votes
1 answer

Intermittent view path issue with custom MVC razor view engine

We have a Sass application that we just implemented a custom razor view engine for to allow for us to have different views served up based on the current user that is logged in. In Dev this all worked fine. In Production (shared web host) however,…
crichavin
  • 4,672
  • 10
  • 50
  • 95
3
votes
1 answer

Spark VS 2010 intellisense

I was thinking about switching one of my projects (and after that subsequently other projects too) to Spark View Engine but after todays research I ran into problem of a lack of Intellisense for Visual studio 2010. Not only that but it seems that…
mare
  • 13,033
  • 24
  • 102
  • 191
3
votes
2 answers

Which View Engine are you using with ASP.NET MVC?, and Why?

I'm thinking of experimenting with alternative View Engines for ASP.NET MVC, and would like to know what other people are using. Please let me know 1) Which View Engine you use, and 2) Why. The standard 'web-forms' view engine is of course a valid…
UpTheCreek
  • 31,444
  • 34
  • 152
  • 221
3
votes
1 answer

Choosing the MVC view engine

I want to allow the end-users of my web application to modify views (via web based back office), stored in the database. The desired view engine is expected to be code-injection safe, meaning that the end-user will be limited to the absolute minimum…
leonard
  • 288
  • 1
  • 5
3
votes
1 answer

Express - Create a new view engine

I know that expressjs supports many view engines, like: ejs, jade, etc. I saw a list here: http://expressjs-book.com/forums/topic/how-to-use-alternative-non-jade-template-engines-with-express/. My question is how can I create my own view engine.…
danchohen
  • 121
  • 9
3
votes
3 answers

What view engines for ASP.NET MVC are people finding better than the default?

It's been a year since this question and I'd like to know now - what view engines are people finding very good and why?
joshcomley
  • 28,099
  • 24
  • 107
  • 147
3
votes
1 answer

How to use MVC Action Results from regular web forms (faking ControllerContext)?

We have a pluggable framework that returns ActionResult objects that render things to a browser. One late breaking requirement is that our plugins should be callable from a regular ASP.NET Web Forms application. So far I have come up with this,…
intoOrbit
  • 2,122
  • 2
  • 19
  • 21
3
votes
3 answers

Choice of View Engines in MVC4?

I am developing a mobile application using ASP.Net MVC4.0, JQuery Mobile, HTML5. As I am new to ASP.Net MVC, I am not sure whether to use Razor(.cshtml) or webForm(.aspx) view engine. Can anyone suggest which view engine I can use to develop a…
3
votes
2 answers

What techniques are used to write a parser that switches between languages?

I'm interested in how a parser like the Razor view engine can parse two distinct languages like C# and JavaScript. It's very cool that the following works, for instance: $("#fm_duedate").val('@DateTime.Now.AddMonths(1).ToString("MM/dd/yyyy")'); I'm…
Aaron Anodide
  • 16,906
  • 15
  • 62
  • 121
2
votes
1 answer

Overriding view location for Razor View Engine

I prefer to work with one class per controller action in my MVC apps, however I'd to be able to structure my view folder with one folder per "controller". I use routes like /Admin/Login which maps to a class called AdminLoginController and…
mattcole
  • 1,229
  • 2
  • 12
  • 22
2
votes
3 answers

ASP.NET (MVC) - render page to a file

I have to create a bunch of static html files as console / winform job. The current solution uses a string builder. Having used ASP.NET-MVC with strongly typed view pages (System.Web.Mvc.ViewPage) I was wondering if it is possible to leverage…
anonymous
  • 6,825
  • 8
  • 47
  • 60
2
votes
2 answers

How do I detect a touch screen mobile device using 51degrees.mobi

I am using the MobileViewEngines describe here by Scott Hanselman, and the 51Degrees.mobi browser database to render different views for mobile and desktop browsers. I now want to add a middle ground. For High-End mobile browsers (apple, android,…
robasta
  • 4,621
  • 5
  • 35
  • 53
2
votes
1 answer

asp.net mvc ViewEngineResult FindView and virtual path provider

What role ViewEngineResult FindView method plays in asp.net mvc, can we change the view location in this method. I can understand VirtualPathProvider but have some confusion about FindView method. Help will be appreciated. Cheers
Parminder
  • 3,088
  • 6
  • 37
  • 61