Radio prefs Macros
Radio prefs macros
In this item, I wonder how to make it easier to make relative links to the site's stories and gems folders. Actually, I just wanted to make it so I don't have to type those URLs myself a lot.
Well, instead of relative links, I just set up some macros in my top level #prefs.txt file:
#my_RURL "http://radio.weblogs.com/0100945"
#my_gems "<%my_RURL%>/gems"
#my_stories "<%my_RURL%>/stories"
Now, all references to my stories and gems can be done via those macros.
<a href="<%my_gems%>/Some_Gem"> Some Gem </a>
Cool. [...]
(later) Well, almost. The substitution doesn't "go all the way through", so in the #prefs.txt, I do have to spell out my URL three times:
#my_RURL "http://radio.weblogs.com/0100945"
#my_gems "http://radio.weblogs.com/0100945/gems"
#my_stories "http://radio.weblogs.com/0100945/stories"
Still pretty cool.
10:54:44 AM