Won't You Take Me to Chunk-y Town: Component-based theming and the future of Drupal front-end development

Timeslot: 
Friday, 2:15pm - 3:15pm
Room: 
65
Track: 
Design & Theming
Experience Level: 
Intermediate

Won't You Take Me to Chunk-y Town: Component-based theming and Drupal front-end development

Slides: http://www.slideshare.net/MarcDrummond/wont-you-take-me-to-chunky-town-c...

Gotta make a move to a theme system that's right for me.
Components keep me movin', keep me groovin' with some energy.

At MidCamp we talked about it, talked about it,
talked about it it, talked about it,
At Drupal Con talked about, talked about,
Talked about design components.

Gotta move on,
From data-model templates,
Gotta move on,
From style guide markup duplication,
Gotta move on

A-won't you take me to... Chunky Town?
Won't you take me to... Chunky Town.
Won't you take me to... Chunky Town?
Won't you take me to... Chunky Town.

Chunks,
Mega Chunks,
Chunks,
Super Chunks,
Chunks,
Inside Chunks.

Won't you take me to... Chunky Town?

Learning Objectives & Outcomes: 

At DrupalCon New Orleans, Dries Buytaert mentioned component-based theming as a potential future initiative for Drupal. This idea had been discussed at MidCamp, and further hashed out at DrupalCon. Some initial efforts have been made to prototype how we could get started with real component-based markup in Drupal theming.

Currently, Drupal's theme system consists primarily of templates that are tightly tied to Drupal's data structures. While much of front-end development revolves around design components—breaking a design into smaller and smaller chunks—it can often take several template overrides to create the markup for one component. That causes difficulties in integrating Drupal with style guides or pattern libraries based around components, such as Pattern Lab or KSSNode. Markup often needs to be duplicated, once in Drupal's templates, and again in the templates that drive a style guide.

Moving Drupal to a theme system based around components could have numerous benefits, from improving style guide integration to making it easier for site builders to build sites outside-in to making it easier to reuse templates both server-side and client-side.

In this session we'll discuss why component-based theming matters, the current state of this discussion, and how you can help take Drupal's theme system to Chunk-y Town.

Platinum Sponsors

Gold Sponsors