hi.
Am 02.03.2006 um 15:30 schrieb csilver_junk@mac.com:
I'm not necessarily concerned with TextMate's ability to do the many super-complicated things it obviously can do, as I probably won't use most of it myself. However, I'm wondering if it has a feature similar to the Persistent Includes available in BBEdit. I have examined the manual and read about how to use snippets, templates, commands, and the like, and I understand how these could be used to make my life easier. The problem is that I haven't figured out if there's a way to re-parse an entire project or certain files within a project after I've made changes that will affect the output.
For instance, if I've used a script to output links to all the files contained in the directory (as a navigation menu of sorts) but later add more files to that same directory, I'd like to be able to re-generate the entire site so that those new files show up in the menu. Likewise, if I've generated prev/next links to other files in the same directory, I'd like to have them updated without having to manually type the new hyperlinks into each and every file of the site. I know I could use PHP or server-side includes or something similar (and I have written a simple php function to do just that),
i think you could call this php-function from within a TM-command to generate the links and (at least) pipe the output into pbcopy (and the replace the static html by hand) or substitute the current selection.
regards, niko.