Skip to content

Instantly share code, notes, and snippets.

@lypanov
Created May 10, 2009 18:34
Show Gist options
  • Save lypanov/109695 to your computer and use it in GitHub Desktop.
Save lypanov/109695 to your computer and use it in GitHub Desktop.
<%- doctype = capture do -%><%= yield(:doctype) %><%- end; if doctype.strip.blank? -%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%- else -%><%= doctype %><%- end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment