Questions tagged [viewengine]
262 questions
0
votes
1 answer
Java HTML View Engine with Master Templates and Sub Views
I'm desperately looking for a Java HTML view engine that fulfills three main requirements:
Support for master template pages.
HTML templates can be used as subviews within other templates.
HTML templates do not have to be backed by config files or…

Codo
- 75,595
- 17
- 168
- 206
0
votes
2 answers
How can i use jquery name syntax with a razor view engine?
I have a webpage that i am converting to razor view engine. I have this code, which is failing now:
if ($("input[@name='exerciseRB']:checked").val() == 'New') {
$("#newExercise").show();
$("#existingExercise").hide();
}
else {
…

leora
- 188,729
- 360
- 878
- 1,366
0
votes
1 answer
Using distinct views for distinct devices ASP.NET MVC
I need to use distinct version of views, for each device.
For example:
Controller/Action: Home/Index
PC - Home.cshtml, Android - Home.Android.cshtml, iPad - Home.iPad.cshtml
These pages contains different markup, but each device. But how it can be…

Alexandr
- 1,452
- 2
- 20
- 42
0
votes
4 answers
Writing a TemplateLanguage/VewEngine
Aside from getting any real work done, I have an itch. My itch is to write a view engine that closely mimics a template system from another language (Template Toolkit/Perl). This is one of those if I had time/do it to learn something new kind of…

claco
- 739
- 1
- 8
- 18
0
votes
1 answer
How do I create a strongly typed view page using ASP.NET MVC VB.NET XML Literals View Engine?
I am using the ASP.NET MVC VB.NET XML Literals View Engine created by Dmitry Robsman and described on his blog in this post.
http://blogs.msdn.com/dmitryr/archive/2008/12/29/asp-net-mvc-view-engine-using-vb-net-xml-literals.aspx
I would like to…

CoderDennis
- 13,642
- 9
- 69
- 105
0
votes
2 answers
.Net MVC 4 View Engine WebForm
This is a quite interesting question, in my opinion.
I have a strongly typed view using the WebForm view Engine, I don't know if changing to razor would solve my problem.
PROBLEM:
I have one view with a list of cars, so of type IList .
And I…

Tito
- 722
- 4
- 26
- 55
0
votes
1 answer
How to change value of multiple iterated element in ejs dynamically?
Here is my EJS code:
when I click on any iterated button it only changes first element's value. But I want to make other element to change as well. What's wrong with it?
<% for(let i=0; i<10; i++){
%>
0
0
votes
0 answers
Getting the error: Could not find matching close tag for "<%" , although closing tag is provided
Could not find matching close tag for "<%".
at /Users/donaldteghen/Desktop/gozem/gozem-merchant-admin/node_modules/ejs/lib/ejs.js:736:19
at Array.forEach ()
at Template.generateSource…
0
votes
1 answer
How can I convert a nested EJS foreach loop to HBS foreach loop?
I was using EJS on my project but I had to change it to HBS for a reason. So I'm trying to translate my ejs code to hbs. However, the syntax of hbs really confuses me.
This is my ejs code: (Sorry, the variables are not English. I hope you understand…

Tolkienist Coder
- 79
- 9
0
votes
1 answer
Handlebars not a function error in express-handlebars
my code,got from a website
const express = require('express');
const app = express();
const port = 3000;
//Loads the handlebars module
const handlebars = require('express-handlebars');
//Sets our app to use the handlebars engine
app.set('view…

ABIN
- 29
- 5
0
votes
0 answers
.NET 6 embedded views & multi tenancy
I am developing a multi tenancy web app in .NET 6. I have so far got to a point where my main app will have all the default controllers, views, view components etc.
I have also got a separate class library per tenant where I can override view…

Paul Hinett
- 1,951
- 2
- 26
- 40
0
votes
0 answers
ASP.NET MVC custom view engine - what is "{1}"
I'm having trouble finding a place where this is explained clearly.
If I have a custom view engine in my ASP.NET MVC project like this (example - I've seen this pattern used in other examples, as well):
public class ProjViewEngine :…

CarenRose
- 1,266
- 1
- 12
- 24
0
votes
1 answer
use view only as template
I am struggling with WiewUserControls.
What I want to accomplish is View without knowledge of which usercontrol have to call with RenderPartial in order to render some html.
What I want instead is to give some kind of IViewEngine interface and then…

Marko
- 1,874
- 1
- 21
- 36
0
votes
1 answer
how can i chain multiple middlewares to one route?
I want to chain 2 middlewares functions in deno oak like this:
const addProductPanier = async(req:any,res:any) => {...}
const showPanier = async(ctx:any) => {...}
router.post('/OBV/panier',addProductPanier).post('/OBV/panier',showPanier);
I've…
user19407663
0
votes
1 answer
deno http server conflict between view engine and oak
I want to render some html pages with view engine and oak but also be able to send data to postgresql database.
First in the construction of my code, i was able to render ejs pages. in an other hand, i injected the code that permit to send data to…
user16152651