Questions tagged [viewengine]

262 questions
0
votes
1 answer

Javascript-emitting template engine for node.js?

Consider e.g. the following scenario: we give some entry point URL (something like https://our.server/customer-name/entry-point.js) to our customer, so that they're able to include our product on their page by simply writing
penartur
  • 9,792
  • 5
  • 39
  • 50
-1
votes
1 answer

How to implement a busy/progress page page on Express.js

I have a webapp created with Node.js/Express.js/Pug that runs a bash script(mostly an Nmap scan) and displays the results. I'd like to implement some sort of page in between the start and the results to signify the system is working on the task. I…
-1
votes
1 answer

Node js express view engine

I recently started node.js and express and I just couldn't find what is this view engine. and what's the difference between different kinds of them. for example : app.set('view engine', 'jade'); app.set('view engine', 'html');
asasdasd
  • 33
  • 1
  • 6
-1
votes
1 answer

What is the best ASP.NET MVC View Engine?

Till ASP.NET MVC 3, Microsoft uses ASP.NET View Engine for MVC. henceforth they changed it to Razor. Yet, there are many other view engines such as: Spark NHaml SharpDOM SharpTiles Wing…
Nasser Hadjloo
  • 12,312
  • 15
  • 69
  • 100
-2
votes
3 answers

Use `index.html` rather than `index.ejs`

I have a mean-stack application. By going to https://localhost:3000/#/home, it reads views/index.ejs. Here is the setting in app.js: var app = express(); app.set('views', path.join(__dirname, 'views')); app.set('view engine',…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
-4
votes
1 answer

How can I create simple view engine like Mustache {{ }} using JavaScript only

How can I create simple view engine like Mustache, so that the word between the {{ }} is replaced by its value, like:

hey there {{ codeName }}

codeName = 'JavaScript 6' so that it be converted to:

hey there JavaScript 6

Hasan A Yousef
  • 22,789
  • 24
  • 132
  • 203
-6
votes
1 answer

Creating simple view engine using JavaScript

How can I create simple view engine using JavaScript like Mustache, so that the word between the {{ }} is replaced by its value, like:

hey there {{ codeName }}

codeName = 'JavaScript 6' so that it be converted to:

hey there JavaScript…

Hasan A Yousef
  • 22,789
  • 24
  • 132
  • 203
1 2 3
17
18