I know nothing about thymeleaf, and without a template file, I'm just 
giving some very generic templating advice:  your template needs to look at 
the current url as it renders each of your main navigation items, and if 
the current url contains the current navigation item's url, then output 
class="active".

This is probably a question more appropriate for your templating engine 
support/wiki/docs/boards.

On Wednesday, April 25, 2012 3:27:58 AM UTC-7, yc y wrote:
>
> I know the class="active" could be used to activate the item of navbar in 
> twitter bootstrap.
>
> I have one html file that contains navbar and use one template engine(
> Thymeleaf) to include the navbar file into many other html files.
>
> Now class of the item should be equal to "active" when the relative html 
> page is loaded
>
> How could I do that?
>

Reply via email to