html-webpack-plugin icon indicating copy to clipboard operation
html-webpack-plugin copied to clipboard

Compile included templates as HTML?

Open dace opened this issue 10 years ago • 4 comments

Is this possible to compile included templates as HTML?

I have a project that uses Twig for templating. All the data in it is static, but I have separated out parts of the page within other twig files for clarity sake (otherwise there would be hundreds of lines of markup in one file). However, I can't figure out how to build my html and have the twig templates appear compiled as markup in the body of that file, rather, the html page still shows all of the includes.

Thanks!

dace avatar Oct 10 '16 14:10 dace

Sorry I don't really understand the question - but yes it is probably possible. Could you please move your question to stackoverflow and add a link to this thread?

jantimon avatar Oct 10 '16 14:10 jantimon

Hi @jantimon , I've updated and hopefully clarified the question here: http://stackoverflow.com/questions/39961020/how-to-handle-templating-with-webpack-and-html-webpack-text-plugin

Thanks!

dace avatar Oct 10 '16 22:10 dace

@hidace you can use esj-render-loader.

deju avatar Oct 13 '16 02:10 deju

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar May 31 '18 19:05 lock[bot]