Nuts to it. Need something cleaner..
Mustache templating engine ported to Javascript
Once, there was a LAND CALLED RUBY and it was a distant and strange territory. Obscure, interesting things, yey, objects, did cometh from such lande, and appeareth upon the script tags with much fanfare and pomp.
Anyway.
I was reading this blog post (http://maraksquires.com/articles/2010/02/03/you-love-mustache-js-and-just-dont-know-it-yet/) and yes, I love it. It’s beautiful code, for starters, and has practical use. The latest revision (I think) is here: http://github.com/janl/mustache.js/blob/master/mustache.js
The most interesting thing is that you can evaluate a response to be inserted into the mustache. So, it’s not just dumb string replacement, its suddenly very concise and neat dynamic cogs all nicely meshing together.
Again, another interesting thing coming from ruby-lande. I should investigate more.
Will thrash out some examples using an ajax/xmlhttp request call to do translations, or tooltips, maybe over the weekend.
HTML5 and the pink elephants
Its hyped, everyone knows it - but the hype has a solid core….
The problem which has been the thorn in the side of every web dev since forever, was/is Internet Explorer, and the absolute certainty that the majority of your general audience would use this. The basics of HTML5 (the things that really get me excited at least) have been around for a while already, on other platforms. SVG, speedy javascript engines, correct implementations of w3c stuff.. it’s nothing really new. What is new is that the upcoming all-singing IE9 will finally address these issues. Without doubt, it’ll screw up a load of other stuff, but if I can start using rounded corners, box shadows, and have smooth animations with complex layouts, I’ll be a happy bunny.
Just think, all of these centuries of wasted collective developer time really should have been invested in progressing the state of the art. For me, this is what the really exciting thing about the next couple of years is. Finally, there will be a common-ish baseline, and the demos which are being thrown around at the moment will hopefully be looking pretty stodgy in about 18 months time. Do check out those links, some really impressive stuff, but still nothing compared to a singing and dancing professionally made flash site. It’ll get there, I guess.
Also nuts to apple, I don’t know if anyone else noticed on their html5 examples, but those blurry images in the gallery (the classic flash trick which they were aping) were in fact… static images. Good work guys, good work.