Use partials in the pages folder #894
-
I know partials normally import from the templates/partials folder due to the wiki. but is it possible to import form the same folder as pages located, which show as the screenshot. intro.html is the partials I want to import into index.html.php |
Beta Was this translation helpful? Give feedback.
Answered by
johanjanssens
May 13, 2022
Replies: 1 comment 5 replies
-
Yes, use: <?= import('intro.html') ?> For more info see: #2 Note that you can also load anything from your |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
johanjanssens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, use:
For more info see: #2
Note that you can also load anything from your
/theme
folder usingimport('theme:/path/to/file)
see: #12