Safehou-se (Pt 4)

HomeBlog


Just overhauled the loops system to accommodate the same loop being used in multiple places. This update is particularly useful for those that create codes with lots of duplicated collapse/tab sections that require the use of looped ids in different places.

Here's a snippet I wrote that can be used to test out the new feature:

<ul class="nav">
  {{%Tabs Loop%
  <li class="nav-item"><a href="#{{%ID%}}" data-toggle="tab" class="nav-link btn btn-primary">{{%Tab Name%}}</a></li>
  %end%}}
</ul>
<hr></hr>
<div class="tab-content">
  {{%Tabs Loop%
  <div class="tab-pane" id="{{%ID%}}">
    {{%Tab Content%}}
  </div>
  %end%}}
</div>

You can try out this new feature here.

Other Updates

  • I edited the code so that placeholder text appears in the preview and code when nothing is filled in by the user. There's a slight bug with this that causes the placeholder text to reappear if the user deletes everything, but in order for the loop deletion to work correctly, I haven't found a fix yet
  • I asked my friend Shiroukami to create the new logo! It's a bit shinier and cooler and more polished now :)