Sleek/aFramework and Drupal
Published Monday 26th of April 2010
I've never really checked out Drupal properly before (or any other framework for that matter) but tonight (16/4) I spent a few hours reading the docs.

It's almost scary how many things are similar, and in some cases completely identical, to aFramework/Sleek.
Everything from modules and hooks (new in Sleek; Events) to the way JS is implemented is ridiculously similar. Almost all of the "features" on drupal.org are covered by aFramework and in some cases we even use identical function names.
Obviously there are some major differences as well. The way aFramework and Sleek deals with pages/controllers (as XMLs) I believe is unique to it and Drupal's "nodes" and "users" are something I definitely do not have (Sleek's core is DB and config free).
TBH in some cases I found aFramework's solutions superior to Drupal's, but it's pretty obvious Drupal is a super robust, fast and intelligently developed framework and reading the docs was definitely educational. Although I'm not too fond of the procedural approach.
It should be said, though, that I have never even installed and played around with Drupal - so I'm sure I'm missing loads.
I've been thinking lately about adding support for Drupal (and others why not) modules in Sleek. Perhaps a way to specify that one particular area of the page should contain Drupal modules and then you could drop whichever modules you like in there.
<Base>
<Wrapper name="wrapper">
<Header/>
<Navigation/>
<Wrapper name="primary-content">
<SleekWelcome/>
</Wrapper>
<Wrapper name="secondary-content">
<Drupal>
<SomeDrupalModule/>
<SomeOtherDrupalModule/>
</Drupal>
</Wrapper>
<Footer/>
</Wrapper>
</Base>
It would most certainly require that the user has Drupal installed next to Sleek and an instance of Drupal would need to be run - but I don't see why it would be impossible to fetch the HTML, CSS and JS that Drupal generates and stick it inside the <Drupal>-element in the controller... I'll need to do some research first though.
Hej
- Tags
- Comments
- 2 comments
Bookmark this Article