Explorations in re-using Twig templates for the front-end

Session description

Wouldn't it be nice if we could have the same templates in use for both the backend rendering and the dynamic ajax fetched content? Well, it turns out you can. Is it a good idea?

This session will look at the prospects of using the same templates for your dynamically rendered / ajax powered front-end logic, and your statically responding back-end HTML. More specifically we will look at:

  • What is the current state? 
  • What are some obstacles to overcome?
  • What are some use-cases for implementing it?
  • What are some bad examples of template-sharing code-bases?

This will hopefully enable the audience to make educated decisions about whether or not to use this approach in their projects, and also hopefully spark some interesting discussion about the methods used.

Slides: https://eiriksm.github.io/twig-and-twigjs-talk/#/

Session time

About the speaker