I would like to see if there is a way to conditionally include some other files (or part of them) directly from textmate.
For example I have a file which contains a program contained in another file, so it would be nice to autoupdate that part of the text file every time.
Does it makes any sense?? Something like
\inc{otherfile}[0-10] At every opening of the file fetches the first 10 lines of otherfile. The problem is how to distinguish text from include instruction. I may have an idea but maybe it doesn't make sense the whole thing...
On 5 Dec 2008, at 14:17, Andrea Crotti wrote:
I would like to see if there is a way to conditionally include some other files (or part of them) directly from textmate.
See Bundles → HTML → Includes.
That said, generally you want this handled at a higher level, e.g. server-side or “post deployment”.