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
2
votes
1 answer

Using aurelia templating engine enhance to dynamically add html

I'm trying to dynamically / programatically insert code into the DOM and have aurelia handle the inserted code like any other module. The tricky part is that the inserted html has a element which should itself load…
user910531
  • 89
  • 1
  • 7
2
votes
1 answer

jQuery.handlebars template not rendering on dynamic DOM appending

I have been using dynamic DOM appending for initializing my app, using jQuery.handlebars as the templating library. But the problem with the jQuery.handlebars is that it does not render template to a dynamically invoked DOM. Example …
cs1193
  • 944
  • 1
  • 12
  • 23
1
vote
2 answers

Business user templating language for Java

I'm looking for a secure templating language for Java that business users can use. When I say secure I mean you can't enter in something that will take down the server or hog a thread. Ideally I would like looping and conditions but for looping I…
Adam Gent
  • 44,449
  • 20
  • 142
  • 191
1
vote
1 answer

Problem with html templating using express

Hey guys i have a problem with EJS and express for changing my html file I am trying to get user data through a form in html like this:-
amk
  • 13
  • 5
1
vote
0 answers

mustache template for key value pair

so i have a json response i am getting from my api like this { dailytask: [ { title: 'Chores', body: 'Wash the plates and vacuum the living room' } ], monday: [ { title: 'madrid', body: 'Wash the roof and sweep the bed' }, { title:…
1
vote
2 answers

Fatal error: Uncaught Error: Class 'Twig_Autoloader' not found

Recently I installed Twig2.0 via Composer for PHP7.2 and when running the code I'm getting these errors, ( ! ) Fatal error: Uncaught Error: Class 'Twig_Autoloader' not found in C:\wamp64\www\php-twig\example.php on line 4 ( ! ) Error: Class…
Sumithran
  • 3,196
  • 3
  • 25
  • 38
1
vote
1 answer

Are ERB and require_relative compatible?

Are ERB and require_relative compatible? I got this message :31:in `require_relative': require_relative is called in erb (LoadError) What does it mean?
JCLL
  • 5,059
  • 4
  • 38
  • 62
1
vote
0 answers

Maintain unordered iteration over map in Go templating

My problem: I have a map[string]Type which I want to iterate over in a template maintaining the random ordering behaviour of the wider language. The Go template library states here https://golang.org/pkg/text/template/#hdr-Actions that : If the…
gjtempleton
  • 734
  • 7
  • 15
1
vote
2 answers

Jinja2 / Nunjucks: Different treatment to for-loop elements

I have a list: list = [a, b, c, 1, 2, 3, a, b, c, 1, 2, 3, a, b, c, 1, 2, 3] And I want to show it as a table, where every 4th, 5th & 6th element is styled in its own way, e.g like this.: 1
sunwarri0r
  • 3,061
  • 2
  • 33
  • 83
1
vote
1 answer

Checking for defined and boolean value of a number of variables in a Twig if conditional

Is there a more elegant way of checking if a variable in Twig is both defined (safe to reference/use) and also check the boolean value of as I am doing below? I have a number of Twig templates which have messy logic in it like this and i'd rather it…
crmpicco
  • 14,513
  • 22
  • 113
  • 191
1
vote
1 answer

What web programming language is this?

I've been looking through the Netgear firmware source for some of the firmwares and while looking at the web directories and HTML files in the source, I've noticed most or all of the HTML files have something similar to this at the top or at random…
1
vote
1 answer

Apache velocity engine 1.7.x tests failure

We work on improving smth' in Apache Velocity Engine Source Code, but we have a problem with its tests when we build it. We cloned the source code from Apache/Velocity on github. Then we tried to build the engine, but we got this error. Failed…
1
vote
1 answer

How to attach directives served on request by server to running angular application

I have a number of angularJs directives generated using velocity template engine Based on request i want to serve respective directive and attach it to angular. Basically i dont want to bundle up all directives instead i want to use only the one…
Ankit Raonka
  • 4,950
  • 8
  • 27
  • 48
1
vote
1 answer

Adding a filter to format Date values dynamically in Nunjucks

How might I check if a value is a date in Nunjuck so that I can dynamically add a date filter to control how it displays. For example: {% if field.value === Date %} It's a date. Apply Filter!
mikeym
  • 4,006
  • 6
  • 26
  • 42
1
vote
1 answer

How to change Sitecore's Templating Engine to Sharpy from Razor

Long story short Client provides us with Smarty Templates on Front end. The .Net port of Smarty (Sharpy) is capable of converting all of those templates and use just like we use RAZOR templates. I am unable to figure out how to switch the templating…
Akshay Khandelwal
  • 1,542
  • 11
  • 19