railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.89k stars 2.26k forks source link

Feature Request: use ERB instead of HAML #3173

Closed olleolleolle closed 2 years ago

olleolleolle commented 5 years ago

TL;DR: This Issue is about using the preinstalled ERB instead of HAML for templating.

@mroderick and I are Rails Admin users. We'd volunteer to try to make this happen, provided this Issue is accepted.

Background

The landscape

Reasons to allow people not to use HAML

Solution proposal

Elsewhere

Andrew-Max commented 5 years ago

I'm actually dealing with this right now. One issue though is that herbalizer cannot fully convert this haml.

Sometimes it data attributes are passed to elements in a block and herbalizer cannot parse this.

jasnow commented 5 years ago

Does this help? https://haml2erb.org/

mroderick commented 5 years ago

Does this help? https://haml2erb.org/

herbalizer is the tool that powers that website

RocKhalil commented 5 years ago

I've opened this PR for this purpose: https://github.com/sferik/rails_admin/pull/3191

If you can help with the tests, it would be perfect 😃

jcraigk commented 4 years ago

HAML is dead but ERB is very suboptimal as a templating language in 2020. I suggest using Slim instead.