Regex with Handlebars


#1

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 !


#2

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


#3

Oww I see ! Thank you for the fast response !


#4

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