Questions tagged [templating-engine]

A templating engine processes templates in a given language, often binding them to a data source, in order to produce an output document.

templating-engine is a software designed for processing web templates, filling them with data and producing web documents.

See wikipedia article.

Also see:

115 questions
0
votes
0 answers

form is not submitting in ejs templating

this is form that written in ejs.
tara
  • 39
  • 5
0
votes
1 answer

jinja2 how to retrieve the value of a variable to use it in an if statement jinja2

In order to create a template using jinja and markdown through mkdocs. I met this problem that is blocking me so far. I am using a variable in my if statement in order to fill a table with some specific information if the condition is true Let's say…
Jinja_dude
  • 356
  • 1
  • 16
0
votes
1 answer

Twig use dynamic variables

I want to display for each user their availability. Therefore I want to concatenate a {{variable}} into {{variable}} (example below). I have an array of workdays: $context['workdays'] = [ 'monday', 'tuesday', 'wednesday', 'thursday', 'friday'…
0
votes
1 answer

How to pass data into ejs templates?

I have the following `html` snippet and I can see that it's using `ejs` and potentially some other templating engines.
Eddie Lam
  • 426
  • 2
  • 11
0
votes
0 answers

Proper way of printing variable only if exists, in .tpl smarty file

Is there any smart way to deal with "undefined" or "undefined index" while printing variables in .tpl files? I know I can check every time with {if isset($variable.key(} {$variable.key} {/if} But doing it for every variable seems just kind of…
prk_001
  • 313
  • 1
  • 13
0
votes
1 answer

How can I setup html template in hbs templating engine in nestjs application in the views folder

I Have images , css , and js files in my public folder and In my views folder I have handlebars(hbs) formatted files in the nest.js application. How can I access images , css , and files in .hbs files.
0
votes
1 answer

RuleEngine or Templating language to transform JSON dynamically

I have a json that needs to be transformed dynamically into another json. I want to map a property from input json to the property of target json, while mapping i also want to apply rule. Below is sample pseudo code if (input.State == "TX") …
LP13
  • 20,711
  • 38
  • 136
  • 286
0
votes
1 answer

Is there a way to use nunjucks to transform a DOM structure into another?

I frequently build webpages from InDesign exported HTML files. And in InDesign I have some control over the elements class attribute, but it is rather difficult to change the DOM structure itself. And it is not always sufficient to go with the DOM…
0
votes
0 answers

How to display array elements passed into Handlebars file one by one on button click?

Suppose, I have following array of objects successfully sent to handlebars file from my express server: [ { "name": "Jon", "isPositive": true }, { "name": "Cercei", "isPositive": false …
neo
  • 899
  • 2
  • 10
  • 20
0
votes
1 answer

Modern templating solution for Yii 1.1

I know that Yii 1.1 is a bit outdated framework, but I would still like to ask if there is a modern templating solution available to be plugged into an existing Yii 1.1 project?
Denis Kulagin
  • 7,244
  • 13
  • 50
  • 104
0
votes
1 answer

Is there a way to compare strings ignoring case in PHP Twig?

I am working with a twig in PHP, and I need to add a way to filter the results. I decided to do this in the templating language by also injecting the filtering keyword. (My data fetches all categories which each contain listings, and I want to…
Hamza ALI
  • 75
  • 1
  • 7
0
votes
0 answers

Can I use React and/or JSX as a templating language on the backend for any file extensions?

Let's say on my backend I have files with arbitrary extension .ext that I want to preprocess with a templating language. Can React and/or JSX be that language? For example: // file foo.ext: whatever // file bar.ext: blah blah…
0
votes
1 answer

How to render to a page A, data that are being posted through a form from page B using Node-express?

The problem Hi people. I have been strangling for the past half an hour trying to solve the rending method. The problem is that I keep getting a specific ERROR 'Cannot get a specific URL' when I post data through a form from Page A and want to…
Evangelos
  • 57
  • 8
0
votes
1 answer

Rendering multiple instances in Handlebars+Express+Nodejs

please help me with following: how to render multiple instances which are comming from anydata base (in my case from Gcloud datastore, before it was MongoDB but it does not actually matter), as i understand Handlebars can accept/parse objects or…