Enable quokka with :module_directives rule
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user