Questions tagged [viewengine]
262 questions
0
votes
1 answer
How to get custom view engine's views to render in razor view engine's master page?
Am trying to render markdown views into my master page aka 'Layout.cshtml'.
So far I got my solution to render the markdown using my own view engine and view.
I'd like to to keep the master page, 'Layout.cshtml', rendering with razor for dynamic…

stackasec
- 65
- 5
0
votes
0 answers
injecting changing view engine list
I'm trying to develop a multi-tenancy project wherein each client can have their own specific view engines.
Specifically I'd like to compile the views to a DLL (using RazorEngine) and have an individual RazorViewEngine for each client but also…

Daniel Powell
- 8,143
- 11
- 61
- 108
0
votes
1 answer
Sub area concept & view engine
I need to create a custom view engine which inherits the RazorViewEngine to implement the concept of sub-areas (plugin architecture).
This means that following view should be possible to obtain:
\Areas\NameArea\Areas\SubArea\Views\XXX.cshtml
I have…

stephan.peters
- 963
- 13
- 35
0
votes
2 answers
node.js jshtml-express layout
Hello!
Is there any way to have the master page or layout in jshtml?
I tried do this in .net Razor style, but it did't works.
Link to jshtml view engine.
My intention is to have mastarpage lets say is called layout.jshtml and some other subpages…

Konrad
- 726
- 4
- 17
- 33
0
votes
1 answer
Where has ViewEngines.DefaultEngine gone an asp.net MVC?
I was recently trying to get the default view engine in ASP.NET MVC 1.0 and couldn't seem to access the ViewEngines.DefaultEngine property that used to be available in the CTP and Beta versions. Does anyone know what the equivalent in the 1.0…

lomaxx
- 113,627
- 57
- 144
- 179
0
votes
2 answers
View engines for non-mvc web application
I'd like to achieve the MVC View Engine behavior in an web forms application. To register a mobile channel in MVC I normally would do something like this
public static List UaSurfpads = new List()
{
"iPad",
"MicrosoftRt",
…

Eric Herlitz
- 25,354
- 27
- 113
- 157
0
votes
0 answers
What resources besides the available source code provide a Razor ViewEngine grammar or similar descriptive document?
What resources besides the available source code provide a Razor ViewEngine grammar or similar descriptive document?
Specifically, I want to study how the fundamentals of the view engine are derived and tokenized/parsed before it is compiled, and I…

jcolebrand
- 15,889
- 12
- 75
- 121
0
votes
1 answer
MVC4 extra folders under View
Im currently implementing MVC into a fairly large project and want to sort views into categories. MVC dont seem to understand this and Im having problems finding a clean solution. Basically I was hoping to solve this with routes, but it isnt…

OMK
- 45
- 1
- 10
0
votes
1 answer
Localized ViewEngines using multiple routes
I am trying to make a simple multi-language website. Overriding FindView to get the file based on the language is easy, my problem comes in the routing part.
I would like to do is: (have a website with 2 languages - pt-br and en-us, let abbreviate…

2Fast4YouBR
- 1,012
- 1
- 12
- 22
0
votes
1 answer
MVC Custom RazorViewEngine initialization not working
I created a custom Razor View engine
Right now when I do:
public class ConfigViewEngine : RazorViewEngine
{
public ConfigViewEngine()
{
var existingViewLocationFormats = new List();
var partialViewLocationFormats =…

DrSammyD
- 880
- 12
- 32
0
votes
2 answers
Change default view folder for custom Http404 error page
I want to custom error pages in my asp.net mvc3 website.
So, I found this very useful post: Custom error pages on asp.net MVC3 and it works well
However, my Http404.cshtml file isn't in the Views default folder. It is in a folder named BaseViews.
I…

Florent Henry
- 702
- 1
- 7
- 25
0
votes
0 answers
The controller name in a custom partial views location with mvc3
I followed this tutorial to customize my partial views locations.
http://www.leonamarant.com/2011/02/17/adding-a-custom-directory-to-razor-view-engine-partial-view-locations-in-asp-net-mvc3/
Everything is ok except one thing : define a custom…

spritus
- 123
- 1
- 7
0
votes
1 answer
Process _Layout.cshtml rendering in ViewEngine override
I have my own implementation of Razor view engine that allows me to process partial views and views "feeding" so that I serve a localized versions of my views to the client.
I use protected override IView CreateView to override view selection…

Maxim V. Pavlov
- 10,303
- 17
- 74
- 174
0
votes
2 answers
Route images in View folder in Asp.Net MVC 3
I tried asking this question a bit differently before, but it wasn't understood, so I'll try another way:
I have an MVC 3 application where I have views in the Views directory as usual. However, for various reasons I need the images for each view to…

Anders
- 12,556
- 24
- 104
- 151
0
votes
1 answer
How to implement "cascading" ViewEngineResults?
I am in the process of adding a mobile extension to the view names when it is detected.
Here is the current code:
public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
{
…

MetaGuru
- 42,847
- 67
- 188
- 294