Enable quokka with :module_directives rule

This commit is contained in:
Claudio Ortolina
2025-05-28 19:41:57 +01:00
parent 5207aa2773
commit 676c2e4290
52 changed files with 103 additions and 73 deletions
+5 -4
View File
@@ -23,10 +23,11 @@ defmodule MusicLibraryWeb do
quote do
use Phoenix.Router, helpers: false
# Import common connection and controller functions to use in pipelines
import Plug.Conn
import Phoenix.Controller
import Phoenix.LiveView.Router
# Import common connection and controller functions to use in pipelines
import Plug.Conn
end
end
@@ -76,7 +77,6 @@ defmodule MusicLibraryWeb do
def html do
quote do
use Phoenix.Component
use Gettext, backend: MusicLibraryWeb.Gettext
# Import convenience functions from controllers
@@ -91,10 +91,11 @@ defmodule MusicLibraryWeb do
defp html_helpers do
quote do
use Gettext, backend: MusicLibraryWeb.Gettext
import MusicLibraryWeb.CoreComponents
# HTML escaping functionality
import Phoenix.HTML
# Core UI components and translation
import MusicLibraryWeb.CoreComponents
# Shortcut for generating JS commands
alias Phoenix.LiveView.JS