Post AQRWVAnDvz1utsHAgq by postmodern@ruby.social
(DIR) More posts by postmodern@ruby.social
(DIR) Post #AQRURbjtbfyjPEtKxU by postmodern@ruby.social
2022-12-09T21:06:55Z
0 likes, 0 repeats
What would be a good name for a method which renders an erb template then writes the output to another file? `erb_file`? `erb_template`? `erb_write`?
(DIR) Post #AQRURcTcreYfh4HrEm by james@ruby.social
2022-12-09T21:15:36Z
0 likes, 0 repeats
@postmodern render_erb_to_file ?What are the arguments? The erb template and the output file path?
(DIR) Post #AQRVDle84law239tWy by postmodern@ruby.social
2022-12-09T21:24:22Z
0 likes, 0 repeats
@james just source and dest paths.
(DIR) Post #AQRWVAnDvz1utsHAgq by postmodern@ruby.social
2022-12-09T21:38:43Z
0 likes, 0 repeats
@james I suppose I could call it `erb` and have an optional second argument for the output, but I don't like adding too much functionality to one method.