Questions tagged [viewengine]

262 questions
0
votes
0 answers

Custom HTML pre-processor / View engine

I’m building ASP.NET Core application, and have a requirement that some pages (not for all pages), will be generated on the fly from fragments. Fragments will be stored in database and include pieces of JavaScript and HTML code. The fragments should…
maverick_2
  • 13
  • 4
0
votes
2 answers

Setting masterName on MVC view causes error when calling RenderAction

I have a Masterpage (site.master) that calls a View using RenderAction. At the moment the View returns "hello world". site.master: <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> …
0
votes
1 answer

EJS - How to link anchor tag to the external websites?

I am trying to navigate to external sites in ejs templating engine. However it is taking link in the anchor tag as one of the routes of my application so it is opening link as follows: http://localhost:3000/www.youtube.com/watch?v=gtLJEhexrxY …
0
votes
1 answer

How to implement a custom view engine in ASP.Net MVC that (sorta) isn't file-based?

I've created a fairly generic view engine that I created initially without aiming toward ASP.Net MVC. Now though, I think it would be a good idea to have it to where it can at least be easily used by MVC projects. I'm wondering if my project would…
Earlz
  • 62,085
  • 98
  • 303
  • 499
0
votes
1 answer

give context from route to pug mixin

I am trying to give context through express route to pug file containing only one mixin. But when i try to render that file, it just do nothing. This is my express route app.post('/comment', (req, res) => { const test = { text:…
Georgi Enev
  • 23
  • 1
  • 9
0
votes
1 answer

S#arp Architecture 1.9 + Multi Tenant Custom View Engine

What is the easiest way to create a Custom AreaViewEngine that S#arp uses? I want to add another directory to search for view for the current tenant, the tenant directory would be part of the domain name (e.g. hm.com), so i would like my view engine…
Paul Hinett
  • 1,951
  • 2
  • 26
  • 40
0
votes
1 answer

template and layout for spring-mvc application

I am using jee with spring mvc framework. I want to make a template that holds a fix menu and a content that change depending on the URI. I want to execute same code for my template suppose that there is something to load from the database in the…
Mohamed Amine Ouali
  • 575
  • 1
  • 8
  • 23
0
votes
1 answer

How to use the same view in FrontEnd and express server-side rendering?

I have a partial view that is used on server-side rendering to build a HTML page and also in FrontEnd to make a partial update on the UI. BecauseI want to use the same partial view file on both server-side and FrontEnd, I was looking for the best…
Miguel Gamboa
  • 8,855
  • 7
  • 47
  • 94
0
votes
1 answer

How is WebViewPage class transformed into html in ASP.Net MVC?

Until recently I thought that ASP.Net views are files (like .aspx or .cshtml) that can contain some .Net code inside themselves and are parsed with a view engine (like razor or aspx) into html files that are sent to a client's browser. Later I…
Mykhailo Seniutovych
  • 3,527
  • 4
  • 28
  • 50
0
votes
1 answer

Setting Super Simple View Engine Sections in from nested master pages

I'm building a web application and am using Nancy and Super Simple view engine to render the content for the user. Since a lot of the pages have the same layout (headers, sidemenu, ect.), I have seperated reusable contents in a master…
Bart de Ruijter
  • 917
  • 10
  • 21
0
votes
1 answer

ASP.NET MVC 3 RC and custom ViewEngine to allow for externally loaded Views

I'm playing around a little with dividing up a MVC-site into several assemblies (ran into some issues earlier). Now I have almost everything working, got the main MVC project that loads in any external assemblies it can find. The external assemblies…
Robin
  • 555
  • 4
  • 14
0
votes
0 answers

View Engine (ViewNotFoundException) Error using Nancy

I am trying to use View Engine to return an HTML page in my window application. URL gets called but when i try to return a View, i get ViewNotFoundException error. In an error message, I cant see the extensions available and locations inspected but…
Jay
  • 1,037
  • 5
  • 23
  • 41
0
votes
2 answers

Will .net MVC3 bring easier integration for alternative view engines?

As you might know .MVC3 brings an alternative view engine named Razor. As I understand in order to make this possible MS has put more effort in making integration of alternative view engines easier. Will this have any impact for other view engines…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
0
votes
1 answer

"sandboxed" view engine for MVC?

I'm curious if anyone knows of an MVC view engine that is more "sandboxed". Specifically, I'm looking to create a multi-tennant user-customizable website.. not quite Myspace, but with similar theming capabilities. The problem, of course, with MVC…
Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
0
votes
0 answers

Render html in server side asp.net core project

I would like to render some data to html file and then return it to user form asp.net core api. How to do it correctly? In node.js i used to work with view engines such as mustache an handelbars.
John Libes
  • 363
  • 3
  • 11