How to setup a template-engine in ruby rails

I want to customize rails scaffolding. For that I want to set up a
custom
template engine.

Can anyone guide me to set a custom template-engine.

Hi ,

rhtml,html ,you can use with rails.No need to configyre template 

engine
like free marker .

I’ve been looking for this too. I guess the answer is in creating custom
generators for your rails scaffolds