Current section

Files

Jump to
bitstyles_phoenix lib bitstyles_phoenix components.ex
Raw

lib/bitstyles_phoenix/components.ex

defmodule BitstylesPhoenix.Components do
@moduledoc """
Shortcut usage macro to import all components at once, see `BitstylesPhoenix`.
"""
defmacro __using__(_) do
for c <- BitstylesPhoenix.components() do
quote do
import unquote(c)
end
end
end
end