CodeKit-1-Old icon indicating copy to clipboard operation
CodeKit-1-Old copied to clipboard

Should Kit files auto re-compile when referenced partials change (currently they are not)

Open benfrain opened this issue 12 years ago • 5 comments

Just giving Kit a whirl and have a basic conceptual question...

Say I have a kit partial for my navigation section (_nav.kit) and I reference/include a link to that file in all my other files (e.g. index.kit contact.kit).

When I make a change to nav.kit - should the HTML files that are generated from index.hit (index.html) and contact.kit (contact.html) get re-compiled with the relevant changes? That's not happening at present.

I currently have to manually re-open any file referencing nav.kit and hit save to get it re-made with the updates. Is that what is supposed to happen?

benfrain avatar Jan 21 '13 14:01 benfrain

Please send me a sample project that demos the issue so I can take a look. Thanks!

bdkjones avatar Jan 22 '13 08:01 bdkjones

Hi Bryan, cheers. No problem sending a demo project if this seems like a bug. However, it could just be a disparity between my expectations and the way it actually works. Is the above the intended behaviour?

benfrain avatar Jan 22 '13 09:01 benfrain

No. When you save a .kit file that is imported into others, the master files should recompile to capture the changes (just as they do in all other languages CodeKit supports).

bdkjones avatar Jan 23 '13 00:01 bdkjones

Brian, figured the issue. Realised it needed to be .kit files into .kit files for it to work. Was trying to do .html into .kit and wondering why changes of the .html files weren't making the 'master' kit file recompile. Put this one down to 'error between keyboard and chair' ;)

benfrain avatar Jan 28 '13 14:01 benfrain

Actually, I want CodeKit to recompile the master Kit file when any imported file changes, so re-opened and marked for fixing.

bdkjones avatar Jan 29 '13 05:01 bdkjones