A farewell to Twig
Lauri Eskola • lauriii
image
Matt Grill • drpal
image
Preston So • prestonso
Drupal. JavaScript. Future.Keynotes. Sessions. Sprints.A different kind of Drupal conference.
Mark your calendar and prep your proposal!Follow @decoupleddays on Twitter.
What we'll cover
●
●
●
What problem spaces are we trying to solve?
●
○
●
○
○
○
●
○
Is Twig theright way forward?
Share templates acrossclient and server—that's universal!
“ “LET'S DO IT
WITH TWIG!
The problem with Twig
Twig
JSX
Handlebars
Angular
The problem with Twig
Twig
JSX
Handlebars
Angular
identically isomorphically
Drupal should treat client-side rendering as a first-class citizen
What about rendering JavaScript server-side in PHP?
“ “NO RECENT UPDATES TO php-v8js
Why don't we use Twig.js or other client-side libraries?
“ “TWIG.JS IS
COMPLETELY DIFFERENT FROM SERVER-SIDE TWIG
Twig problems
●
○
●
○
●
○
One React to rule them all
●
●
●
●
Whoa, whoa, whoa,JSX in Drupal core???“ “
LET'S TACKLE A FEW QUESTIONS FIRST
Shouldn't we explore pairing Twig with React first?
Combining Twig with React
●
●
Should we abandon templating languages altogether?
No templating language altogether?
●
●
●
Emerging solutions
● twig-graphql
● waterwheel.js
● js-drupal
● react-twig
Help out JS modernizationwith jsdrupal!
Drupal. JavaScript. Future.Keynotes. Sessions. Sprints.A different kind of Drupal conference.
Mark your calendar and prep your proposal!Follow @decoupleddays on Twitter.
Join us forcontribution sprints
Mentored Core sprint
First timesprinter workshop
Generalsprint
#drupalsprint
What did you think?
http://nashville2018.drupal.org/sessions/farewell-twig
https://www.surveymonkey.com/r/DrupalConNashville
Title slideAdditional title
Main HeaderSecond line
image
Main HeaderSecond line
image
Main Header
image
Some Section headerSecond Line
Main HeaderSecond line
Main HeaderSecond line
Main HeaderSecond line
Main HeaderSecond line
image image
This will be a quote about something or someone“ “
Join us forcontribution sprints
Mentored Core sprint
First timesprinter workshop
Generalsprint
#drupalsprint
What did you think?
http://nashville2018.drupal.org/schedule
https://www.surveymonkey.com/r/DrupalConNashville