ruby-changes:66067
From: Takashi <ko1@a...>
Date: Thu, 6 May 2021 15:14:23 +0900 (JST)
Subject: [ruby-changes:66067] a7f7479872 (master): [ruby/erb] Document that `<% #` doesn't work
https://git.ruby-lang.org/ruby.git/commit/?id=a7f7479872 From a7f7479872cc70678b5f8374347c509945c04e82 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Wed, 5 May 2021 23:13:26 -0700 Subject: [ruby/erb] Document that `<% #` doesn't work [Bug #17846] https://github.com/ruby/erb/commit/b58b188028fbb403f75d48d62717373fc0908f7a --- lib/erb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erb.rb b/lib/erb.rb index 17dc557..3045106 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -46,7 +46,7 @@ require 'erb/version' https://github.com/ruby/ruby/blob/trunk/lib/erb.rb#L46 # # <% Ruby code -- inline with output %> # <%= Ruby expression -- replace with result %> -# <%# comment -- ignored -- useful in testing %> +# <%# comment -- ignored -- useful in testing %> (`<% #` doesn't work. Don't use Ruby comments.) # % a line of Ruby code -- treated as <% line %> (optional -- see ERB.new) # %% replaced with % if first thing on a line and % processing is used # <%% or %%> -- replace with <% or %> respectively -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/