Rename deftag to component

This commit is contained in:
Mitchell Hanberg 2019-04-15 18:37:13 -04:00
parent 3e3d17c1b9
commit 8e1ae6cf11
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ defmodule Dsl.Html do
defmacro partial(text), do: quote(do: text(unquote(text)))
defmacro deftag(name, do: block) do
defmacro component(name, do: block) do
quote do
defmacro unquote(name)(attrs \\ [])

View file

@ -130,7 +130,7 @@ defmodule Dsl.HtmlTest do
end
defmodule CustomTag do
deftag :flex do
component :flex do
div(class: "flex")
end
end