Current section
Files
Jump to
Current section
Files
lib/live_antd.ex
defmodule LiveAntd do
@doc """
use LiveAntd, :view
"""
def view do
quote do
# Surface
import Surface
end
end
@doc """
use LiveAntd, :live_view
"""
def live_view do
quote do
use Surface.LiveView
end
end
@doc """
When used, dispatch to the appropriate live_view/view/etc.
"""
defmacro __using__(which) when is_atom(which) do
apply(__MODULE__, which, [])
end
end