[TxMt] Re: Update all persistent includes

Jan Lübke jan.luebke at gmx.de
Mon Sep 19 08:53:00 UTC 2011


Hi Brad,

I was too quick with my praise. Your script did not parse the #relative# argument correctly. If the file is in /subfolder/subsubfolder, the link to the main-page #relative#index.html should parse into ../../index.html but it turns into index.html

Jan

Am 19.09.2011 um 10:21 schrieb Jan Lübke:

> Hi Brad,
> 
> thanks a lot! I just cloned your fork and it works as advertised.
> 
> Yes, it is very useful. I run a little website for our lions club (http://www.lions-werne.de/ - German-language only). Persistent includes help me keep the code manageable without using server side scripts like php or a complete CMS. I started the project with a windows-program called phase5. 
> 
> Over the years, the site has grown to more than 100 html-files. With your update project-command, I can quickly propagate changes to the site-menu. I can imagine this is useful to other users, so the core bundle is the place to put it.
> 
> Jan
> 
>> 
>> Hi Jan,
>> 
>> Hard to believe that I wrote that little bundle 5 years ago now. Glad to see some people still find it useful! I've committed a new "Update Project / Selected Files" command for it. It doesn't use AppleScript, so hopefully that will make it a little faster. And it only processes files that has the "tminclude" tag in them. Hopefully it will make it's way to the core TextMate bundle soonish. Until then, if you want to pull from my fork to try it out, you'll find it here:
>> 
>> 	https://github.com/bradchoate/html.tmbundle
>> 
>> -Brad
> 



More information about the textmate mailing list