Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with partials.directory and layout templates #4

Open
rolfkleef opened this issue Sep 8, 2024 · 0 comments
Open

Working with partials.directory and layout templates #4

rolfkleef opened this issue Sep 8, 2024 · 0 comments

Comments

@rolfkleef
Copy link

I am trying to understand how to make the partials directory work together with a separate layouts folder, and a JSON file under the pages folder.

In essence, this means adapting the Getting Started online example.

  • I add partials: {directory: 'components'} to vite.config.js,
  • so that I could remove components/ from layouts/main.hbs

However, when starting npm run dev, I get an error "The partial layouts/main.hbs could not be found".

When looking at the code, it seems that in the case of a page index.json, the page template is included as a partial (but it is indeed not located in the partials directory and not registered).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant