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
3 answers

Mustache + Sling + CQ5

I'm researching a means of using Mustache templating for the view engine in CQ5, which uses Sling. I'm looking for some advise if anyone has already had experience going into this. I need to use a template format that can be shared between front and…
David
  • 307
  • 1
  • 4
  • 12
0
votes
2 answers

Twig template engine and truncating text

I've been learning how to use Twig, as per this site. This is my code, a variation on the tutorial's: index.php:
avenas8808
  • 1,477
  • 3
  • 16
  • 31
0
votes
2 answers

Simple PHP templating engine that allows to use PHP expressions insted of inventing its own language

I'm looking for a simple PHP templating engine that allows to use PHP expressions in the substitutions. The "MVC ideal" that templates should contain just plain variable substitutions and nothing else often fails, which the common templating systems…
regnarg
  • 596
  • 7
  • 10
0
votes
1 answer

Interpolate Twig variable/attribute inside value of another Twig attribute definition

Take the following example structure: {% set paths = { ... 'js': { ... 'jquery': { 'version': '1.7.2', …
Adam Lynch
  • 3,250
  • 5
  • 31
  • 62
0
votes
2 answers

Is there a php template engine can work like asp.net

PHP template engine like smart only gives an extends method for us to designing pages. In asp.net, we can extend(using master page) and also can create user controls and include different user controls in one page. Is there a PHP template engine can…
ciceblue
  • 1
  • 1
0
votes
1 answer

How to write single-line comments in an H2O template

How can I write single-line comments in an H2O template? Django's template engine allows the syntax {# a single-line comment #} for single-line comments, but this does not seem to be available in H2O. There is no trace of it in the documentation,…
Genba
  • 754
  • 2
  • 9
  • 19
0
votes
1 answer

Handlebars registerPartial() is not working

Here is my code on JsFiddle Error- Uncaught Error: The partial social could not be found PS. I have included all the libs. Thanks in advance.
chhantyal
  • 10,570
  • 6
  • 45
  • 71
0
votes
1 answer

Where to render Ajax search results in an object oriented approach using Coldfusion?

I'm updating a Coldfusion8/MySql site with a fairly complex search from "spaghetti to object" (= separate view, controller and process - no framework, everything handled by Jquery Mobile). I need to run the search query through Jquery-AJAX and am…
frequent
  • 24,965
  • 53
  • 166
  • 316
-1
votes
1 answer

Automatically generated velocity template file from a given html file

Is there a way to automatically generate Velocity Template file from a given reference implementation html file. Right now I have to update my velocity template manually whenever there are changes in html or ts files. Is there are way to automate…
Ankit Raonka
  • 4,950
  • 8
  • 27
  • 48
-1
votes
2 answers

PHP: as API+Views or just API

Note: This is an opinionated question. I m asking this as I was unable to find proper articles covering my concern. PHP (alone or with a framework like laravel) can be used for both backend and frontend (with templating engines like…
1 2 3 4 5 6 7
8