Scriptlet_scanner is a project mainly written in Ruby, it's free.
A great template parser that helps you to capture and inspect server-side scripts