I want to include a Markdown file from another Markdown file:
- My root Markdown file is located in
src/error-ts/index.md
- I want to embed another file from
src/error-ts/test.md.
Your documentation says that all file paths are relative to the source directory, so I tried the following embed:
{% include error-ts/test.md %}
This causes the error below:
err: Template render error: (unknown path)
Error: template names must be a string: Na
That's why I tried a relative path:
{% include ./error-ts/test.md %}
This caused a new error:
err: Error [Nunjucks Error]: error-ts/index.md
[Line 4, Column 12] unexpected token: .
Here is what my src/error-ts/test.md looks like:
console.log('Hello, World!');
How can I embed it?
I want to include a Markdown file from another Markdown file:
src/error-ts/index.mdsrc/error-ts/test.md.Your documentation says that all file paths are relative to the
sourcedirectory, so I tried the following embed:This causes the error below:
That's why I tried a relative path:
This caused a new error:
Here is what my
src/error-ts/test.mdlooks like:How can I embed it?