I needed a streaming template engine for a web app I'm building that works in Node.js, the browser, and service workers. Existing solutions like flora-tmpl were great for Node.js, but I needed something smaller and compatible with all environments. So, I created whatwg-flora-tmpl (name pending), a lightweight library based on the WhatWG Streams API. It uses template literals, handles dynamic content, and even supports nested streams. The example code demonstrates how it can be used to render HTML responses piece by piece instead of waiting for all data, significantly improving perceived performance. It's particularly useful for responses generated in service worker fetch events. Big thanks to Matthew Phillips, the creator of flora-tmpl, which served as the inspiration for this project.
I love Posterous, but it's time for my blog to move on. I'm looking to hire someone to migrate my blog to a new platform. Must-haves include: static site generation, git integration, markdown/text/HTML support, preserving my current URLs and all imported posts, and full template control. Ideally, it won't be Ruby-based. I'm not concerned about hosted solutions, a fancy CMS, or comments.
This post introduces a ReSharper Live Template to expedite creating default constructors in C#. The template, activated by typing "dc", automatically inserts a public default constructor for the containing class, saving developers keystrokes and time. An example demonstrates its usage.
I'd really like a feature in Blogger that lets me customize what's shown on the main blog page versus the individual post page. Something like custom tags, maybe <itempage></itempage>, that would let me control the content displayed in each view.
Blogger has a new Trackbacks feature, but enabling it with custom templates is tricky due to incomplete documentation. While new features are appreciated, completed documentation upon release is essential.