question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check if `includes` dir is relative to current dir or `input` dir

See original GitHub issue

Currently is relative to input directory, which is confusing. See #60.

It’s unlikely we’ll be able to wholesale change this, but we can at least check to see if the directory exists before we choose.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
kleinfreundcommented, Mar 15, 2018

In the future, will it be possible to have the include directory reside outside of the input directory?

0reactions
sonniesedgecommented, Jan 11, 2022

After a long time not building websites I just tried using Eleventy. The need for nested includes instantly confused me and ultimately resulted in a very messy structure with content files living alongside layout files.

A big upvote here for dropping the need for includes and data to live inside input!

Still love it all though! ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to check if a path is absolute path or relative path in a ...
os.path.isabs returns True if the path is absolute, False if not. The documentation says it works in windows (I can confirm it works...
Read more >
Paths explained: Absolute, relative, UNC, and URL—Help
A relative path refers to a location that is relative to a current directory. Relative paths make use of two special symbols, a...
Read more >
Relative and absolute paths, in the file system and on ...
realpath() command will convert a relative path to an absolute one. getcwd() will give you the current directory.
Read more >
Navigating Files and Directories
You can usually use either a full path or a relative path depending on what is most convenient. If we are in the...
Read more >
File path formats on Windows systems
You can determine whether a file path is fully qualified (that is, if the path is independent of the current directory and does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found