Forum: Ruby on Rails help with making TemplateHandlers for rails 2.2.2

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
cmo-0 (Guest)
on 2009-01-23 09:37
(Received via mailing list)
i want to create a custom template handler for an intranet app.

the template handler will be like erb template (maybe inherent from
ERB handler), but the final substituted result will be passed to some
unix tools for generating the final result.

looking at the source of rails template handlers. i understand that
any template handler should inhernt from TemplateHandler and define
compile method that will build a string of ruby code to be handed over
to rails for evaluation, and finally send the final result of this
evaluation to the client.

MY problem is: the final result will be a generated file on the
filesystem, and i couldn't figure how to throw send_file in the mix. i
looked at prawnto, rjs, builder and fleximage plugins. but all do not
generate results on the filesystem (aka do not use send_file).
This topic is locked and can not be replied to.