Skip to content

Tailwind being set as the template engine #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dinclas opened this issue Feb 9, 2023 · 4 comments
Closed

Tailwind being set as the template engine #246

dinclas opened this issue Feb 9, 2023 · 4 comments

Comments

@dinclas
Copy link

dinclas commented Feb 9, 2023

The project is overriding the project configuration to set tailwindcss as the template engine, as can be seen here.

g.template_engine :tailwindcss

Should this really be done? I mean, tailwind is not a templating engine and this causes issues like heartcombo/simple_form#1806 where libraries expect proper templating engines on this config.

Cheers

@samuelpismel
Copy link

samuelpismel commented Oct 28, 2023

For those who are affected by this.

The workaround is to add this to config/application.rb:

# fixes tailwindcss-rails overwrite
config.generators.template_engine :erb

@lrjbrual
Copy link

lrjbrual commented Nov 3, 2023

@samuelpismel this work. thanks

@flavorjones
Copy link
Member

I would welcome a PR that updated the README with this workaround, @samuelpismel

@pas256
Copy link

pas256 commented Mar 7, 2024

See discussion here: #131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants