I think I made the worst L&L template 🏆

I’m pretty proud of this. I made the world’s least efficient character counter:

<Set content>Add or reference your content here.</Set>

<Catch>
  <Loop times=99999>
    <Set trimmed_content><Format length="{Get loop=count}"><Get content /></Format></Set>
    <If variable=content is value="{Get trimmed_content}">
      <Set character_count><Get loop=count /></Set>
      <Exit />
    </If>
  </Loop>
</Catch>

<p><Get character_count /> characters</p>

Can you come up with a hackier template than this? I’d love to see your “creative” use of L&L!

Disclaimer: This is a terrible idea, don’t actually use this on your site.

4 Likes