Hi all,
Is there tags for block comment in rhtml, so that I can comment out a
block of code (mainly for testing/debuging)?
html comment can't prevent ERb code from processed
<%# text inside become comment %> only comment out the the tag
It’s quite inconvenient not to have such facility.
Thanks,
[email protected] wrote:
Hi all,
Is there tags for block comment in rhtml, so that I can comment out a
block of code (mainly for testing/debuging)?
html comment can't prevent ERb code from processed
<%# text inside become comment %> only comment out the the tag
It’s quite inconvenient not to have such facility.
You mean like:
<% if false -%>
…everything skipped…
<% end -%>
?
–
Michael W.
Hi Michael,
It’s something like that, but your suggestion is just a workaround.
There’s no built-in in rhtml to do this? I want the editor to mark it
as comment also.
In Java JSP files, you have <%-- comment --%>
However your way is useful at some level.
Thanks,
Grant Gelinas-Brown wrote:
I believe
=begin %>
<% your ruby code here %>
<% and some more %>
=end %>
will work. Make sure the ‘=’ sign is the first thing on a line.
Nope, doesn’t work.
–
Michael W.
I believe
=begin %>
<% your ruby code here %>
<% and some more %>
=end %>
will work. Make sure the ‘=’ sign is the first thing on a line.
Grant
On 3/12/07, [email protected] [email protected] wrote:
It’s something like that, but your suggestion is just a workaround.
There’s no built-in in rhtml to do this? I want the editor to mark it
as comment also.
In Java JSP files, you have <%-- comment --%>
However your way is useful at some level.
<%#
This <%= does %>n't work?
%>
jeremy