phoenix_meta_tags
phoenix_meta_tags copied to clipboard
How to use it in LiveView
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, %{...})}