mardi 5 septembre 2017

How to create seperate files using one template that contains different content with grunt bake?

I have one template that is styled in a certain way. I have multiple content that I want to display each within that template. Is it possible to do that with bake?

http://ift.tt/1dCPqTZ

E.g.: My template looks like this:

<div style="background-color:red">

</div>

Content 1:

<p>Content 1</p>

Content 2:

<p>Content 2</p>

Content 3:

<p>Content 3</p>

It should be displayed like this: File 1:

<div style="background-color:red">
  <p>Content 1</p>
</div>

File 2:

<div style="background-color:red">
  <p>Content 2</p>
</div>

File 3:

<div style="background-color:red">
  <p>Content 3</p>
</div>

At the end I get 3 sperate files. The template is always the same. The only differy in the content.




Aucun commentaire:

Enregistrer un commentaire