hlongvu/phoenix_meta_tags

How to use it in LiveView

Opened this issue · 1 comments

Firstly, thanks for the useful library.
I am keen to know,

def controller do
  quote do
    ...
    use PhoenixMetaTags.TagController # Add this
  end
end

where to put these lines in case of a LiveView rendered page?

just assign the meta tags on the live view assigns like:

|> assign(:meta_tags, %{...})}