I want to assign a css class to a part of HTML based on condition in slim-lang
I am doing the following
- if current_user
.title
- else
.title_else
Now how can i write the HTML that should be nested in the one of the class above? Do i need to write HTML in the both if condition and else condition ?
The reason is that the HTML that should be nested in one of the above class should be further intended rightwards. But if i intend it further right, it is including under else condition. How shoule i approach this now ?