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:
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:
Still pretty cool.