Hey Josh,
Appologies for the late entry to this thread -- finally getting around
to making prawnto template handler plugin work with 2.2.
But in this thread you seem to contradict what I thought you had told
me earlier in a github message:

>  josh said 3 months ago:
>
> Your right! There is nothing to compile. However we
> do wrap the template with some ActionController
> helpers. We also need to convert it to a string so
> we can eval it later with the proper local assigns.

>>
>> Hey Josh!
>> I’m trying to better understand rails compiled templates,
>> and I was hoping you might spare a minute to help. I
>> understand the point of compiling ERB, for instance,
>> cuz you can save time by not having to translate to
>> ruby code everytime. BUT I don’t understand why you
>> would want to make builder compiled? A builder template
>> would already be ruby code, so is there another
>> advantage here I’m missing? thanks for the help!
>> you’ll be helping make prawnto even better :)
>>
>>  -thorny_sun
>

so are you saying now that ruby source is somehow getting run faster
since it is getting "compiled".  I'm very confused.  What if we take
the builder template as an example (since prawnto template handler
works very similarly in that it is just ruby code) -- is there any
speed gain expected by "compiling" it?  Or did I just misunderstand?

thanks for the help!
-thorny_sun


On Nov 14, 4:11 pm, Joshua Peek <[EMAIL PROTECTED]> wrote:
> Yes, you source will get compiled into a ruby method and it will just
> run that instead. Its much faster.
>
> Let me know if there are any other issues you run into. Just email me
> "josh at joshpeek dot com".
>
> On Nov 14, 1:34 pm, brady8 <[EMAIL PROTECTED]> wrote:
>
> > Thanks Josh!
>
> > That's great, and should definitely get me on track to getting this
> > working.
> > I'm wondering though why Rails has moved to using compiled code? Is
> > there really any performance benefit when the code being compiled is
> > ruby code itself?
>
> > Regards,
> > Brady
>
> > On Nov 14, 10:44 am, Joshua Peek <[EMAIL PROTECTED]> wrote:
>
> > > Here is a good example to get you started.
>
> > >http://gist.github.com/25022
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to