/bleathem.ca

Primary LanguageJavaScript

This is the source code used to generate the website of Brian Leathem

Awestruct is a Ruby-based tool for building static HTML websites. A project originally started by Bob McWhirter, it has grown in true Open Source fashion with a number of new users and contributors. While awestruct is centred around creating websites with static HTML content, HTML these days is very far from static. With so many content providers providing web APIs, it’s easy to consume content with javascript and give a static page a dynamic feel. Some examples of truly fantastic dynamic capabilities include:

  • the comment system of this blog (driven by Disqus)
  • the twitter feed in the side panel

These are both great examples of content both consumed and created by a javascript interface on a “static” HTML website.

Other content areas that seem to be dynamic (eg. requiring a database back end) are in fact static. Things like a tag cloud and blog archive are really only dynamic at the time you publish your material. There is no need to query a database with every page render – simply build up an index whenever a page is published. And this is just a simple blog!

I encourage you to take the time to explore the Arquillian website, which is truly a great example of what can be done with static HTML and harvesting dynamic data at publish time, and engaging the project community to contribute content to the site. I look forward to seeing what similar goals we can accomplish with the RichFaces website as we port it to being built with Awestruct.

Switching over to awestruct has given me a great chance to explore some new technologies:

There’s nothing like trying something new to expose pre-conceptions you didn’t even know you had. I look forward to seeing how I can take the lessons I’ve learnt, and fold them in to make the JSF web development experience better.

Lastly, a word on the tools used to manage this blog. With this new setup:

  • I author my content in my favourite plain text editor (Emacs!)
  • push content to github.
  • publish with a simple rsync.
Creative Commons License
Java EE – Experiences of a Developer by Brian Leathem is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at github.com.
Permissions beyond the scope of this license may be available at http://www.bleathem.ca/readme.html.

Copyright Brian Leathem, all rights reserved.