Last active
January 29, 2016 03:59
-
-
Save paulcsmith/009f70cc4b73141ac384 to your computer and use it in GitHub Desktop.
Render title and meta tags in Phoenix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<!-- you could put a helper in the Layout View but it's probably not necessary --> | |
<%= render_existing(@view_module, "seo." <> @view_template, assigns) || render("default_seo.html") %> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title>This is the title for my index page</title> | |
...meta tags, etc... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment