add write_partial with an option to use angular-rails-templates