PhoenixTurbo (PhoenixTurbo v0.1.0) View Source
Use Turbo in your Phoenix app.
Link to this section Summary
Functions
Convert string/list/ecto struct to string.
Define plug method turbo_frame
. Remove the layout if it's a turbo-frame request.
import PhoenixTurbo.ViewHelper
.
Link to this section Functions
import PhoenixTurbo.ControllerHelper
.
Convert string/list/ecto struct to string.
## Examples
dom_id("posts") # => "posts"
dom_id(%Post{id: 1}) # => "posts_1"
dom_id(%Post{}) # => "posts_new"
dom_id([%Post{id: 1}, %Comment{}]) # => "posts_id_comments_new"
Define plug method turbo_frame
. Remove the layout if it's a turbo-frame request.
import PhoenixTurbo.ViewHelper
.