08/02/25 11:52:45
>>45
そんな感じだったような気がする
>>46
静的なファイルなのなら、コマンドラインからerbやerubyコマンドに渡せばいい
スクリプトで動的に生成されたものにエラーがあるという話なのならちょっと違う
~$ cat test.rhtml
<title>てすと</title>
<h1>Hello, <%= World %>.</h1>
~$ erb test.rhtml
(erb):2: uninitialized constant World (NameError)
~$ cat test.rhtml
<title>てすと</title>
<h1>Hello, <%= "World" %>.</h1>
~$ erb test.rhtml
<title>てすと</title>
<h1>Hello, World.</h1>