inkle / inkle/inky

Inky: Include in sub folders requires wrong path

Open
#337 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
340
PR merge metrics
No merged PRs in 30d

Description

Hello!

_The issue is that in Inky you always need to include with the path relative to the main ink file._
So e.g. we have a folder `Folder` which contains 2 files `includes.ink` and `test.ink` - the `includes.ink` is included in the main ink file. Now we want to include `test.ink` in `includes.ink` which we have to do like so `INCLUDE Folder/test.ink` because otherwise Inky complains that it can't find the file, even though both files are in the same folder.
_The expected behaviour is that the include path should be relative to the file you're doing the include in._

This is especially a problem with the Unity integration, because `includes.ink` is in `Folder` and from there it looks for `Folder/test.ink` so it constructs a path `Folder/Folder/test.ink` which of course is wrong.

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.