is it a bug in the “man erb” documentation,
or I am misunderstanding it?
Looks like the man page for erb is just wrong:
$ erb --help
print this help
erb [switches] [inputfile]
-x print ruby script
-n print ruby script with line number
-v enable verbose mode
-d set $DEBUG to true
-r library load a library
-S safe_level set $SAFE (0…4)
-E ex[:in] set default external/internal encodings
-U set default encoding to UTF-8.
-T trim_mode specify trim_mode (0…2, -)
-P ignore lines which start with “%”
erb (the commandline tool) has always defaulted to interpreting lines
beginning with % as Ruby code:
So just a documentation issue in the man page which has also been there
forever. File a bug?
-Justin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.