Theme Packets: A Modular Approach to Theming Drupal
While Drupal modules get to enjoy best practices, make use of coding standards, and share a pretty consistent coding style – the theme layer is a goddamn nightmare. However, you can actually achieve a much nicer development experience with Theme Packets!
Theme Packets are essentially isolated collections of light-weight files that contain theme functions, templates, preprocessors, and all their associated stylesheets and scripts.
That is to say, it is a methodology of organization that enables you to maintain your sanity and prevent your themes from taking up too much of your own psychic RAM.
Oh, and it’s also a module. (disclaimer: I am the maintainer)
This BOF is primarily targeted for advanced themers/developers that identify a problem in the clutter of files that is their theme, as well as css/html/js ninjas who are new to Drupal or PHP and would like to just “do their thang” without having to deal with writing PHP code.
- Login to post comments
Comments
Skinr?
This sounds almost the same as http://drupal.org/project/skinr
Maybe.
That’s interesting. I never used Skinr so I’m not exactly sure where these two ideas overlap (I’ll definitely be checking out your presentation, though. ;) However, the idea of theme packets is more like a discipline and method of development and organization which lets you make sense of advanced themes with a large amount of customizations. The accompanying module isn’t necessarily meant to add features, but rather it’s a tool that automates the process of producing maintainable code.
Interesting
Ah, interesting! Thanks for the clarification. I’ll try to make it to your BOF so I can find out more :)
Link or Write-up?
I heard this was cool, but I can’t find any other information on this concept.
Screencast?
Was there a recording of this presentation?
Sorry, no recording... or online documentation, yet.
Since this was a freeform BOF, I didn’t record a screencast. Sorry. If I post a blog about theme packets I’ll be sure to link it to here, or tweet about it.
Here is the project page
http://drupal.org/project/themepacket