Is there a good example of using partials with han...
# http4k
z
Is there a good example of using partials with handlebars? I'm running into an error pointing to the file which contains my partial
Copy code
The partial '.\src\main\resources/Post.hbs' at '.\src\main\resources/Post.hbs' could not be found
but I am unsure of what I am doing wrong since the handlebars template appears correct to me.
d
This looks like it could be a Windows problem to do with line separators. Can you copy the handlebars templates class and replace the path separators on this line from / to \. Then just use that in place of the real Handlebars templates and see if it works? https://github.com/http4k/http4k/blob/fe6e9dad948613d7cfcd65b55da92f8a71501de8/core/template/handlebars/src/main/kotlin/org/http4k/template/HandlebarsTemplates.kt#L18
z
I appreciate the help - the issue isn't from your library, it's from the underlying jknack one and an issue with the merge. I just removed the partial render for now, so there will be some duplication but it isn't a big issue immediately.