brunch icon indicating copy to clipboard operation
brunch copied to clipboard

Merge html files into one index.html

Open julienaubert opened this issue 12 years ago • 3 comments

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>

julienaubert avatar May 04 '14 14:05 julienaubert

no

paulmillr avatar May 05 '14 01:05 paulmillr

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.

tomchomiak avatar Dec 16 '14 07:12 tomchomiak

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.

es128 avatar Dec 16 '14 11:12 es128