-
Hello everyone, I’m a bit stuck and not sure if the issue lies with me, Handlebars, or the bundler. Essentially, I’m trying to replicate this example: However, when I run: npm install
npm start I get the following output:
Instead of something like: start
test outside
<div class="nav">
My Nav test navtest layout
</div>
<div class="content">
My Content
</div>
end In the (server-side) project, I’m using Webpack’s If I debug the project, I notice here that the Handlebars instance contains partials and additional helpers. However, it seems they aren't being compiled into the output. What am I doing wrong? BTW, no success with handlebars-layouts too. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @Bessonov, the Handlebars has two methods:
The plugin automatically uses The |
Beta Was this translation helpful? Give feedback.
@Bessonov
I have experimented with precompilation and have a positive result. So very simple partials can be used in compilation mode.
This discussion is transferred to the [FEATURE REQUEST] handlebars: precompile templates with partials issue.