brunch
brunch copied to clipboard
Merge html files into one index.html
Is there something like this for brunch?
https://github.com/vanetix/grunt-includes
index.html
<html>
<head>
<title>Show me</title>
</head>
<body>
include "content.html"
</body>
</html>
content.html
<div class="content">
<h1>Content</h1>
<p>More content</p>
</div>
Produces
<html>
<head>
<title>Show me</title>
</head>
<body>
<div class="content">
<h1>Content</h1>
<p>More content</p>
</div>
</body>
</html>
no
Something like this would be nice if you are not building a single page app and want to merge html components into different html files.
It would, but it's simply not something Brunch is geared to do currently. There are other tools such as wintersmith and DocPad designed for this purpose which could be used if you wish to go in this direction.