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,
- Chuong
hnchuong@gmail.com 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 -%>
?
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,
- Chuong
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
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.
bitsweat
(Jeremy Daer)
March 14, 2007, 4:25am
6
<%#
<p>This <%= does %>n't work?</p>
%>
jeremy