How can ejs
display characters without using <%=%>
?
For example, I don't know how to write when:
<a href="class="<%
// Add active to class depending on condition
if(hoge){
"active"
}
%>">
I'm afraid I don't have the environment at hand, but how about the following?
<%var active=hoge?"active":"%>
<a href="class="<%=active%>">>
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.