The Dilbert comic strip is available by RSS, with an inline image for every day.
We can use DekiScript to parse out the topmost entry, which is the entry for today.
<pre class="script">
var src = string.match(web.text('http://feedproxy.google.com/DilbertDailyStrip', 'channel/item/description'), 'src="([^"]+)"');
if(src)
web.image(src);
else
"Sorry, no Dilbert today. :(";
</pre>
<p> </p>
Next: Use the template.
{{ DailyDilbert() }}
And see the output:
The web.text function takes a parameter of an xpath query, which can be used to drill down into the RSS feed.
web.text('http://feedproxy.google.com/DilbertDailyStrip', 'channel/item/description')
This will return us:
<channel> <item> <description> anything contained here! </description> </item> <channel>
The next part uses string.match to match the contents of the src="..." block:
var src = string.match(web.text('http://feedproxy.google.com/DilbertDailyStrip', 'channel/item/description'), 'src="([^"]+)"');
That value is then passed to web.image to render the comic.
It is left as an exercise to the reader to provide a daily XKCD template!