Haven't looked at this yet, but someone else reported a similar issue.
I wasn't able to find much on the intertubes to help with learning
templates. I just learned everything by reading through the rails
code. The compile mechanism is nice, and I did have prawnto
leveraging it at first-- but then I decided I was wasting too much
time trying to make things work in compile for no benefit. In the
case of prawnto (and xml builder for example) where it is all just
ruby code anyway, there is no real performance gain to be had by
compiling, so I decided to just use the easier development path with
render.
But if render is now completely gone, some options will have to go
away or be given their own extension, such as :dsl option. The
problem is that using the compile method, you've got to create a
string of ruby code to be eval'ed. And if the string itself needs to
change depending on its own evaluation then things get complicated
(i.e. the :dsl option). But this could be solved by just saying you
need to use a .prawndsl extension or whatever. Compiling would also
be nice since it would fix some local variable issues automatically.
If you can wait, I was planning on tackling when rails 2.2 was
officially released (maybe they'll decide to put render back in-- we
can always hope:
http://github.com/rails/rails/commit/d2ccb852d4e1f6f1b01e43f32213053ae3bef408#comment_7905)
If you can't wait-- please feel free to submit patches and I will
update the repo. If you go back in the git history to when I was
compiling it may help you figure it all out.
Brady-- if you figure out any more on your end-- do let us know-- we
can just keep adding to this thread..
good luck,
-thorny_sun