DEV Community

Mohan Sharma
Mohan Sharma

Posted on

Handlebars-- I'm unable to use If condition for two dynamic values that is current reference and current page number to

Liquid syntax error: Tag '{%



    {{#each pages_count}}
                                <li class="page-item "><a class="page-link" href="{{this}}">
                                        {{#if (eq {{current_page}} this )}}

                                            <ul class="page-item " ><button class="page-item active">xxsdasdsssx{{this}}</button></ul>

                                            {{current_page}}
                                            {{else}}
                                            <button class="page-item">sss{{this}}</button>
                                            {{/if}}
                                </a></li>
                                {{/each}}
                        </ul>
                    </nav>

Here I'm unable to use If condition for two dynamic values that is current reference and current page number to highlight the current page number

If you have any suggestion please do let me know%}' was not properly terminated with regexp: /\%\}/

Top comments (1)

Collapse
 
lagend profile image
john

Information technology (IT) is the practice of storing, processing, transmitting, and managing data and information through the use of computers, Technology software, and networks. It covers topics like database management, data analysis, cybersecurity, and computer programming.