Regex with Handlebars

I’ve never used Handlebars before, I tried googling about it, didn’t find much.

        {{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
        {{#foreach tags}}
            <li class="nav-elem" role="menuitem"><a href="{{@blog.url}}/tag/{{name}}">{{name}}</a></li>
        {{/foreach}}
    {{/get}}

I’m trying to use a regex so I can get only the tags I want and not all of them.
Thanks a lot !

Handlebars basically doesn’t allow for javascript execution as a theme developer. You also can’t filter using regex, so there’s not way too much you can do :grimacing: if you’re looking for more advanced logic your best bet is clientside js

Oww I see ! Thank you for the fast response !

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.