Skip to content

Commit 62986f5

Browse files
committed
Remove default adapter
1 parent 8fa7eaa commit 62986f5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

lib/ex_cell/adapter.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
defmodule ExCell.Adapter do
2+
@moduledoc false
23
@callback container(Map.t) :: {:safe, List.t}
34
end

lib/ex_cell/adapters/cell_js.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
defmodule ExCell.Adapters.CellJS do
2+
@moduledoc false
3+
24
@behaviour ExCell.Adapter
35

46
alias Phoenix.HTML.Tag

lib/ex_cell/base.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
defmodule ExCell.Base do
2+
@moduledoc false
3+
24
defmacro __using__(opts \\ []) do
35
quote do
46
import ExCell.View
57

6-
@adapter unquote(opts[:adapter] || ExCell.Adapters.CellJS)
8+
@adapter unquote(opts[:adapter])
79
@namespace unquote(opts[:namespace])
810

911
@doc """

lib/ex_cell/ex_cell.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ defmodule ExCell do
1414
|> Keyword.get(keyword, fallback)
1515
end
1616

17-
1817
def relative_name(module, namespace) do
1918
parts = case namespace do
2019
nil -> Module.split(module)
@@ -32,7 +31,8 @@ defmodule ExCell do
3231
end
3332

3433
def container(module, params, attributes, [do: content]) do
35-
options(module, params, attributes, content)
34+
module
35+
|> options(params, attributes, content)
3636
|> module.__adapter__().container()
3737
end
3838

0 commit comments

Comments
 (0)