Questions tagged [template-engine]
A template engine is software that is designed to process templates and content information to produce output documents.
template-engine
1,650
questions
1
vote
1
answer
47
views
Absolute prevention of content pollution in output buffer
I have this following code that basically renders partials. However I was trying to find a way to prevent polluting $templatePath variable into the template (the variable is currently accessible from ...
0
votes
0
answers
22
views
"Copying from template version None" Issue in Python Copier Templating Package
I've created a copier template. Everything is alright with it. I'm generating it within a Python file. When prompting/answering is finished, it shows a message that I don't know how I can modify/fix.
...
0
votes
0
answers
82
views
tailwind styles not properly applying in express and ejs app
I am using express and ejs view engine in my project and i want to implement the tailwind css in my code for better styling but the tailwind styles are either not applying completely or not all of the ...
0
votes
0
answers
18
views
Using Thymeleaf to generate data interpolation in a .txt file, within a web application
I'm trying to create an interpolated string using a text file as a template and being processed by the "Context" class, however, for some reason it reports that the Application Context is ...
-2
votes
1
answer
66
views
Go template: Can't use HTML tag inside range block
I have a Go project use GoFiber and html template engine. When I give an array to range block in .html file, if between {{range .}} and {{end}} has no HTML tag, it runs. But when I add some, it seems ...
0
votes
1
answer
50
views
How to escape colon in the attribute key with Thymeleaf
I want to generate the following entry in .xml file with Thymeleaf
<postalCode xsi:type="extPL:adxp.postalCode"> </postalCode>
to do so, I have the following template:
<...
0
votes
0
answers
25
views
Template engine styles render not working
CSS Not rendering:
CSS rendering in single level path like /, /users etc... CSS not rendering inside /admin/add-user.
My Folder structure:
Please here to view image
index.js:
const express = require('...
0
votes
0
answers
87
views
Freemarker template not found exception in Quarkus
After followed the official documentation and others tutorials, when I run my quarkus 3.6.4 app I get the error:
2024-01-12 10:02:11,412 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-...
0
votes
0
answers
35
views
Can a Choice selection in a template be used to set another property
Working in VS 2022
When creating a template using the new template engine I can create Parameters with a datatype of choice. In the eventual templates these are shown as a dropdown.
Currently in my ...
1
vote
1
answer
68
views
Passing Pug variables from child template for use in parent template block
I'm working on a project that utilizes the Pug template engine. All my Pug files (layout.pug, head.pug, index.pug, etc.) are stored within a folder named pug. In my layout.pug file, I've established ...
1
vote
0
answers
43
views
Thymeleaf Template Processing Exception: Neither BindingResult nor plain target object available as request attribute
Question: I'm encountering an issue with Thymeleaf while trying to bind a form field to an object in my Spring Boot application. I'm receiving the following error message:
org.thymeleaf.exceptions....
0
votes
0
answers
34
views
Unable to load thymleaf template in Spring boot App
enter image description here
I have created a new Spring Boot app & trying to run on localhost, my project is running successfully but thymleaf template engine fails to load templates.
I have ...
0
votes
1
answer
52
views
Pug cannot find installed Highlight.js JSTransformer filter
The documentation says I just have to install the filters via npm in order to use them.
If you want to be able to use filters in your Pug template, you would first make sure that these features are ...
2
votes
1
answer
298
views
Is it safe to use python str.format method with user-submitted templates in server-side?
I am working on project where users must be able to submit templates containing placeholders to be later rendered to generate dynamic content.
For example, a user might submit a template like:
"${...
0
votes
1
answer
36
views
A lack of line breaks in browser's source view using html-express-js template engine
I am not experienced in express js template engines and I tried to choose a simple one from the list https://expressjs.com/en/resources/template-engines.html
I chose html-express-js that is on GH: ...