spree / deface

Rails plugin that allows you to customize ERB views in a Rails application without editing the underlying view.
MIT License
520 stars 127 forks source link

Not working with HAML 6 #237

Open kidhab opened 1 year ago

kidhab commented 1 year ago

I'm using a Rails application that bundles HAML 6. There are some .deface files that replace or add some code, like:

/ insert_after 'erb:contains("delete")'
= link_to t('.send_message'), new_message_path(:message => {:mail_to => @user.id}), class: 'btn'

Deface (1.9.0) silently fails to update the views. deface:get_result doesn't show any errors or changes.

By downgrading to HAML 5.2.2 everything works fine.

Let me know if you need more information.

forkata commented 1 year ago

We are also seeing an issue with rendering haml templates/partials through Deface when updating to version 6.x. The behaviour we're seeing is that the raw template is being output instead of the rendered html.