0.5.0
Pre-release
Pre-release
Breaking changes
- Rename
raw
→unsafe_raw
— this methos is really dangerous and the new name makes that clear - Rename
Phlex::View
→Phlex::HTML
— sorry, you’ll have to do a find/replace again! - The Rails generators now add
ApplicationView
as a module rather than an abstract class. You can still use an abstract view class if you want but the generators recommend using a module instead. phlex/rails
is no longer required automatically. If you're using Rails, the best option is to requirephlex/rails
in the Gemfile
gem "phlex", require: "phlex/rails"
New features
- Support for I18n translations
- Before and after rendering template callbacks
- Conditional rendering with the
render?
predicate - Test helpers with optional Nokogiri, Capybara and Rails integration
What's Changed
- Fix typo in documentation by @jai-x in #250
- Support html safety for the #render_in method by @bradgessler in #222
- Fix benchmarks by @joeldrapper in #261
- Make docs website responsive by @stephannv in #269
- Add Phlex views to Tailwind configuration at install by @alexandreruban in #271
- Remove redundant slash in void elements by @joeldrapper in #272
- Add test helper by @stephannv in #275
- Document the ability to register custom elements by @mansakondo in #263
- Improve test helpers and related documentation by @stephannv in #277
- Add I18n support by @stephannv in #251
- Remove component rename warning by @joeldrapper in #283
- Use normal Rubocop release by @joeldrapper in #292
- Compiler improvements by @joeldrapper in #202
- Before / after rendering template callbacks #259 by @joelmoss in #294
- Refactor _attributes to process_attributes (#297 and #264) by @joelmoss in #299
- Isolate Rails tests by @joeldrapper in #306
- Set solargraph typecheck level to
typed
by @joeldrapper in #307 - Revert _attributes name change in favour of an explicitly defined process_attributes by @joelmoss in #302
- Rename
raw
→unsafe_raw
by @joeldrapper in #308 - View test helper with optional nokogiri / capybara integration by @joeldrapper in #310
- Rails view test helper by @joeldrapper in #311
- Remove iteration details from collections by @joeldrapper in #312
- Make
ApplicationView
a module by @joeldrapper in #313 - Remove test helper by @joeldrapper in #314
- Clean up by @joeldrapper in #316
- Remove
process_attributes
feature by @joeldrapper in #318 - Delegate specific
form_with
output methods by @joeldrapper in #319 - Make views
to_proc
able by @joeldrapper in #321 - [Proposal] Add render? method to allow conditional rendering by @stephannv in #322
- Fix list style in documentation by @alexandreruban in #323
- Mix attributes together by @joeldrapper in #230
- Rename Phlex::View → Phlex::HTML by @joeldrapper in #326
- Form abstraction for Rails [EXPERIMENTAL] by @joeldrapper in #219
- Phlex::Markdown [EXPERIMENTAL] by @joeldrapper in #329
- Add whitespace around markdown
code
blocks by @joeldrapper in #330 - Add
Turbo::Stream
andTurbo::Frame
[EXPERIMENTAL] by @joeldrapper in #331 - Handle strange CommonMark AST issue by @joeldrapper in #332
- Generator task for Rails controller with Phlex views by @barrywoolgar in #324
- Switch from HTML escaper from CSI to Hescape by @joeldrapper in #333
- Improve testing stuff by @joeldrapper in #335
- Friendly warning when accessing
Phlex::View
by @joeldrapper in #337 - Bump phlex to 0.5.0 by @joeldrapper in #339
New Contributors
- @stephannv made their first contribution in #269
- @joelmoss made their first contribution in #294
- @barrywoolgar made their first contribution in #324
Full Changelog: 0.4.0...0.5.0