Twice the fun: Twig on the server, twig on the client

eiriksm

One template system to rule them all. Your front-end application components and your back-end Drupal page renders. Now that we have the template system Twig for our themes, can we finally share code between the front-end and the back-end? The holy grail?

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?

From this session you can expect working code examples, broken client-side templates and hopefully, in the end, it will fuel a healthy discussion.

Session Track

Front end

Experience Level

Intermediate

Drupal Version