jsoverson / preprocess

Preprocess HTML, JavaScript, and other files with directives based off custom or ENV configuration
Other
366 stars 80 forks source link

Looping @include #132

Open murger opened 6 years ago

murger commented 6 years ago

Is it possible to include files through variables? As in:

<!-- @foreach $NAME in FILES -->
  <template id="t-<!-- @echo $NAME -->">
    <!-- @include $NAME -->
  </template>
<!-- @endfor -->

FILES be like -> [ 'account.html', 'assets.html', 'basket.html']

Would be appreciated very much, if this functionality could be added.