AutoFetch
Many Tinderbox features turn out to be useful in unexpected ways. Autofetch is perhaps the outstanding example.
Originally, Autofetch was intended to make it easier to do two jobs:
- Provide a nice way to integrate RSS feeds into your Web pages. This is the syndication mission in really simple syndication. The catch is, almost nobody uses RSS for syndication! They use RSS as a personal information dashboard, a menu of Web news. So, this role is nice to have but not, I think, very much used.
- Provide a clean way for teachers to include assignments in student work -- and to make sure that changes in the assignment get passed to students. It's a great idea! I'm not sure that many people actually use it.
So is Autofetch a spare wheel? No! Autofetch turns out to be a terrific way to spread information between Tinderbox documents.
For example, from type to time we release a new version of Tinderbox. This information gets used in lots of places. In the old days, we had to change the version number each time we mentioned it -- and that led to mistakes. Now, whenever we want to mention the current version, we just say
^include(/config/version)
(Or, more likely, we put that in a macro and say ^do(TinderboxVersion)
. You get the idea.)
But different sites use different Tinderbox files! How do we make sure that all the different sites get the news about a new version? We can use AutoFetch. The Tinderbox site exports its configuration notes in simple text format; for example, the current Tinderbox version is always at
http://www.eastgate.com/Tinderbox/config/version
.
Other Tinderbox documents can simply AutoFetch from this URL and get the current price.
What happens if I'm offline? When I'm working on a plane or in the forest, Autofetch can't check the version, so it uses the old version. All is well.