You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
I'll definitely mention this in the Rails PR, as we are still considering what options would be best for templates in this architecture.
My gut says that we need something that most editors will be able to syntax-highlight correctly, and will be compatible with different templating engines.
Version 1.0.0 of actionview-component removes support for inline templates and includes support for the built-in Rails template handlers, including Slim and Haml.
We removed inline templates due to anticipated issues with the type system being developed for Ruby 3. We may revisit them in the future.
First of all - @joelhawksley Thank you! The missing part of Rails I was googling so badly 😄
I have an idea about templates - instead of defining it as a method with heredoc, use the same approach as Sinatra's inline templates can be better
https://github.com/sinatra/sinatra#inline-templates
as, for example, we can define styles in the same place like:
Related code from Sinatra repo can be found here
The text was updated successfully, but these errors were encountered: