Current section
Files
Jump to
Current section
Files
lib/liquid/tag.ex
defmodule Liquid.Tag do
defstruct name: nil, markup: nil, parts: [], attributes: [], blank: false
def create(markup) do
destructure [name, rest], String.split(markup, " ", parts: 2)
%Liquid.Tag{name: name |> String.to_atom(), markup: rest}
end
end