i don't think this is useful. In general, you should use Rails' official API whenever possible and avoid inventing your own way to do the same thing. This makes things easier for somebody else to work on your code.

It is much better to do it this way:

```
= render_for(:head) do
  = javascript_include_tag(:foo)
```