Twitter: @laurii1
There are sprints on Sunday in Impact Hub!
Babel
ES6
ESLint
Yarn
Webpack
Type validation (i.e. Flow)
Framework for managing state
Babel
ES6
ESLint
Yarn
- Webpack
- Type validation library (i.e. Flow)
- Framework for managing state
+ Backbone
+ Underscore
+ jQuery
http://buytaert.net/should-we-decouple-drupal-with-a-client-side-framework
http://buytaert.net/selecting-a-client-side-framework-for-drupal
Allowed to change markup
Stable is being reset before 9.0.0
Slide by @areaweb
KSS
https://www.drupal.org/project/zen
Pattern Lab
https://www.drupal.org/project/patternlab
Currently there is a big trade off in all of the different approaches. All of the approaches has chosen one:
Unify & simplify render & theme system: component-based rendering (enables pattern library, style guides, interface previews, client-side re-rendering)
https://www.drupal.org/node/2702061
Require Node.js for Drupal 9 core and rewrite some of Drupal's UI code from PHP to JS
https://www.drupal.org/node/2645666
Theme system improvements roadmap
Picture from @SGreenwellUT
Controller for Page
Template preprocess
Default preprocess
Preprocess for suggestions for page
Default template
Render element default values
Pre render
functions
Template
override for article
Controller for Article
Preprocess for suggestions for article
You have a bug in Article node view. Please try to isolate where this problem could be.
Controller for Page
Template preprocess
Default preprocess
Preprocess for suggestions for page
Default template
Render element default values
Pre render
functions
Template
override for article
Controller for Article
Preprocess for suggestions for article
<?php
$variables['id'] = 1;
$variables['id'] = [1];
This is totally legal:
What should we do next to make Drupal more awesome for frontenders?