added ruby/haml mode hooks for rinari-mode