Created
December 25, 2014 05:09
-
-
Save matori/2cdaea7f8bef7f00bbe2 to your computer and use it in GitHub Desktop.
[Jade] meta mixin
This file contains hidden or 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
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