Template compilation framework in Ruby