I need to change the below existing code in JSP to Sightly(HTL):
<%
if (WCMMode.fromRequest(request) == WCMMode.EDIT){ %><img src="/libs/cq/ui/resources/0.gif" class="cq-carousel-placeholder" alt=""><% }
%>
I want to access the wcmmode and the request object directly in sightly without using the Java class. However I am facing issues in doing that. Could someone provide me the way(syntax) to access the objects directly in HTL ?