Skip to content

Instantly share code, notes, and snippets.

@matori
Created December 25, 2014 05:09
Show Gist options
  • Save matori/2cdaea7f8bef7f00bbe2 to your computer and use it in GitHub Desktop.
Save matori/2cdaea7f8bef7f00bbe2 to your computer and use it in GitHub Desktop.
[Jade] meta mixin
mixin meta(name, content)
if name.match(/content-(encoding|length|language|type|style-type|script-type)|default-style|refresh|set-cookie|pragma|cache-control|expires|allow|date|last-modified|location|www-authenticate|x-ua-compatible|x-dns-prefetch-control/i)
meta(http-equiv="#{name}", content="#{content}")
else
meta(name="#{name}", content="#{content}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment