Review main Abandoned

56857[WIP][FEATURE] Introduce JavaScript templating engine

Oliver Hader CR 0 V 0 Hard +341 −129 updated 10/26/18, 10:15

Commit message

Most client side processing in TYPO3 use jQuery to build new DOM
elements dynamically. While this is fine for tiny adjustments it
becomes pretty difficult for applications that required much more
templating and logic such as conditional rendering or iterations.

In order to improve transparency of templating and easy the possibility
to adjust that behavior on the client side a new JavaScript templating
engine shall be introduced. Handlebars.js provides a slim and extensible
API to just provide template rendering.

Rich application frameworks (e.g. Angular, Vue, Polymer, React, ...)
would simply be too much for the first step, besides that it would
raise requirements on the build chain and lower the possibility of
extensibility through extensions at the same time. For the future it
could be considered to introduce a lightweight data-binding framework
as well - e.g. Rivet.js or similar solutions.

Besides introducing the templating engine it is already applied in the
maintenance section of the install tool to demonstrate behavior and usage.

@todo
+ structure & extend helpers
+ provide RST file explaining behavior in detail
+ adjust more Fluid/HTML templates to be based on Handlebars

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 14