Talk:Template engine
From LimeSurvey Manual
About current page
- --DenisChenu (talk) 08:30, 7 December 2016 (CET) see https://manual.limesurvey.org/Template_engine#Will_not_have token form must not be included in updatable views. But i think it MUST be , particullary for token form. A lot of forum post can find solution if token form are updatable.
- No problem, it's probably a small feature to add, right? Olle (talk) 10:14, 7 December 2016 (CET)
- can be done with form.pstpl using some expression to : more easy i think --DenisChenu (talk) 17:56, 20 December 2016 (CET)
--DenisChenu (talk) 11:11, 7 December 2016 (CET) it's already in it : https://github.com/LimeSurvey/LimeSurvey/tree/develop/application/views/survey/frontpage/tokenForm then think PHP dev can replace it in 3.0 with template.
About inclusion or not
- If we don't allow inclusion of another views : I think we must use only one view file. For exampla qanda send : the basic part + the array of answers + the array of question (or object) and only one view with some foreach --DenisChenu (talk) 12:30, 15 September 2016 (CEST)
- If we allow inclusion : we surely must update how files is included : only allow some subdirectory to be included , and no external files --DenisChenu (talk) 12:30, 15 September 2016 (CEST)
[Tammo] My ideal world (in LS templating)
- all views are in core (current *.pstpl and question views)
- all views are built up with Twig or another templating engine
- all views can be placed in the template and thus overridden
- all templates either depend on core or on another template, thus being able to make a new template by referring to an existing template, while overriding only what is needed. This way people can create templates that rely on "neutral" (or another core template), which is kept up-to-date
- all stylesheets are in the template, with the template.css being the stylesheet that the user may want to edit for styling, other stylesheets in the template are for basic styling (plain bootstrap or other framework stylesheets) or for functional aspects (template-core.css and survey.css combined)
- only stylesheets that are introduced in plugins, are loaded from the plugin directory
- core stylesheets are made with LESS/SASS for more advanced users
Where you can read: views, you may also call it template file or anything else, as long as a designer/front end developer can use it to influence the appearance of LS
--Tammo (talk) 15:23, 6 December 2016 (CET) Shall we delete everything that relates to Moustache from this page?