Skip to content

Commit

Permalink
formatting live.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthkyatham committed Nov 27, 2024
1 parent ee2b1ec commit 9bc508d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Used by "mix format"
[
import_deps: [:ash, :phoenix],
plugins: [Phoenix.LiveView.HTMLFormatter],
import_deps: [:ash],
inputs: ["*.{heex,ex,exs}", "{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
inputs: ["{mix}.exs", "{config,lib,test}/**/*.{ex,exs,heex}"]
]
20 changes: 10 additions & 10 deletions lib/ash_phoenix/gen/live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ defmodule AshPhoenix.Gen.Live do
igniter
end

igniter = write_formatted_template(
igniter,
"ash_phoenix.gen.live/show.ex.eex",
"show.ex",
web_live,
assigns,
generate_opts
)
igniter =
write_formatted_template(
igniter,
"ash_phoenix.gen.live/show.ex.eex",
"show.ex",
web_live,
assigns,
generate_opts
)

if opts[:interactive?] do
Mix.shell().info("""
Expand Down Expand Up @@ -147,7 +148,7 @@ defmodule AshPhoenix.Gen.Live do
contents =
path
|> template()
|> EEx.eval_file([assigns: assigns])
|> EEx.eval_file(assigns: assigns)
|> formatter_function.()

Igniter.create_new_file(igniter, destination_path, contents, generate_opts)
Expand Down Expand Up @@ -423,5 +424,4 @@ defmodule AshPhoenix.Gen.Live do
defp default_options(_), do: []

defp label(key), do: Phoenix.Naming.humanize(to_string(key))

end

0 comments on commit 9bc508d

Please sign in to comment.