View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
07545Feature requestsTheme editorpublic2026-11-19 19:26
Reportertacman1123 Assigned ToLouisGac 
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Summary07545: Use a dedicated template engine
Description

Templating is great, but there's no reason that Limesurvey should have its own.

Additional Information

A possible solution: Use TWIG or Smarty in LS2
Both Twig (http://twig.sensiolabs.org/) and Smarty (http://www.smarty.net/) are dedicated template engines in PHP that can be used as the V part of a MVC framework. They're fast and support caching. Both use a decorator design pattern, much more flexible that the traditional set of "includes" that force the designer to add all sorts of "if" statements in a complex environment.

Tagstemplate, twig
Bug heat4
Git branch / Pull Request URL

Relationships

parent of 10074 closedLouisGac Please insert LS version and build# as classes in body 

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2016-09-11 20:27

reporter   ~40750

Twig (sandboxed) or Mustache.

ollehar

ollehar

2016-09-11 20:55

reporter   ~40751

Manual page: https://manual.limesurvey.org/Template_engine

c_schmitz

c_schmitz

2026-11-19 19:26

administrator   ~87444

LimeSurvey has been using the Twig template engine (sandboxed) for its survey themes since version 3, and it is still the theme engine in LimeSurvey 7, so all survey theme files you edit in the theme editor are Twig templates. Closing this request. If you meant something different, feel free to reopen it.

Issue History

Date Modified Username Field Change
2015-12-04 15:09 c_schmitz Relationship added parent of 10074
2015-12-11 14:40 c_schmitz Category Templates => Theme editor
2016-09-11 20:27 ollehar Assigned To => ollehar
2016-09-11 20:27 ollehar Status acknowledged => assigned
2016-09-11 20:27 ollehar Note Added: 40750
2016-09-11 20:55 ollehar Note Added: 40751
2016-11-15 10:01 DenisChenu Tag Attached: twig
2016-11-15 10:01 DenisChenu Tag Attached: template
2016-11-22 12:45 ollehar Assigned To ollehar => LouisGac
2026-11-19 19:26 c_schmitz Note Added: 87444
2026-11-19 19:26 c_schmitz Bug heat 2 => 4
2026-11-19 19:26 c_schmitz Status assigned => closed
2026-11-19 19:26 c_schmitz Resolution open => fixed