Skip to content

Commit b58b188

Browse files
committed
Document that <% # doesn't work
[Bug #17846]
1 parent 38f1281 commit b58b188

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on the rules below:
3232
```erb
3333
<% Ruby code -- inline with output %>
3434
<%= Ruby expression -- replace with result %>
35-
<%# comment -- ignored -- useful in testing %>
35+
<%# comment -- ignored -- useful in testing %> (`<% #` doesn't work. Don't use Ruby comments.)
3636
% a line of Ruby code -- treated as <% line %> (optional -- see ERB.new)
3737
%% replaced with % if first thing on a line and % processing is used
3838
<%% or %%> -- replace with <% or %> respectively

lib/erb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#
4747
# <% Ruby code -- inline with output %>
4848
# <%= Ruby expression -- replace with result %>
49-
# <%# comment -- ignored -- useful in testing %>
49+
# <%# comment -- ignored -- useful in testing %> (`<% #` doesn't work. Don't use Ruby comments.)
5050
# % a line of Ruby code -- treated as <% line %> (optional -- see ERB.new)
5151
# %% replaced with % if first thing on a line and % processing is used
5252
# <%% or %%> -- replace with <% or %> respectively

0 commit comments

Comments
 (0)