TemplateBit and stuff…
More Javascript hacking!
I’ve been working a little utility class called TemplateBit that enables you to create little template things out of HTML elements in Javascript. There are several advantages for using TemplateBit instead of doing things the traditional way:
- Keeps your code seperated and neat. Don’t mix up your HTML and Javascript.
- Easy to modify and theme.
- Less code required to write your web application.
You can check out the source of TemplateBit, the demo source (useful if you want to know how it worked) and the demo itself. Be sure to view the demo JS source, as its easier for you to see than for me to explain.
You can also check out a version created without using TemplateBit here.
Hopefully we can utilise this for Avocado and Flasher at some stage.
Speaking of Bongo, I’m planning to do some Bongo work at some stage during the next week or two, and will be spending most of my break working towards the stuff I didn’t finish for M3. I’ve had been fairly busy of late, as (for those who didn’t already know), I had a lot of work dumped on my plate at the last minute, and the fact that my internet went down for a bit didn’t make things any better.
I also want to get the finalised planning for Crystal underway, probably after a meeting with probably the Chief Moo, and who ever else wants to come along. I’ll give out proper details as to when we’ll be discussing it so you can come and join the fun. I’m not sure if we should use IRC or the -devel.
I think that’s enough blogging for one day by my standards.