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
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
OK, I think I fixed that. Thanks for catching that; I forgot to test #relative#.
https://github.com/bradchoate/html.tmbundle/commit/53490e60df073836b55407a92...
So how does this compare to processing the tree of files with AppleScript? Gotta be a little faster, no?
-Brad
On Sep 19, 2011, at 1:53 AM, Jan Lübke wrote:
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
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate