You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Often I'd like the ability to output code from a function rather than having to close / open the tags to do this. In EJS this is possible via the outputFunctionName option.
In short, I'd like to be able to write something like:
<%if(condition){%>string<%=variable%>string<%}%>// or, more likely:<%if(condition){-%>string<%=variable%>string<%-}%>
Describe the solution you'd like
Either a function, or the documentation to make a function, that will allow me to output directly without opening and closing tags excessively. My IDE (WebStorm) doesn't support ETA with customised tags at all (I like <? / ?>), and provides terrible EJS support too, so I'm basically looking at monocoloured code files and find the first form far more familiar to me (and easier to type).
Describe alternatives you've considered
Opening and closing tags a lot! This is very annoying when refactoring EJS code that could take advantage of the outputFunctionName
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Often I'd like the ability to output code from a function rather than having to close / open the tags to do this. In EJS this is possible via the
outputFunctionName
option.In short, I'd like to be able to write something like:
rather than:
Describe the solution you'd like
Either a function, or the documentation to make a function, that will allow me to output directly without opening and closing tags excessively. My IDE (WebStorm) doesn't support ETA with customised tags at all (I like
<?
/?>
), and provides terrible EJS support too, so I'm basically looking at monocoloured code files and find the first form far more familiar to me (and easier to type).Describe alternatives you've considered
Opening and closing tags a lot! This is very annoying when refactoring EJS code that could take advantage of the
outputFunctionName
The text was updated successfully, but these errors were encountered: