Guest User

Untitled

a guest
Feb 21st, 2018
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Modified for HTML spec to not generate self-closing tags
  2. # Examples:
  3. # * <tt>tag("br") => <br></tt>
  4. # * <tt>tag("input", { "type" => "text"}) => <input type="text"></tt>
  5. def tag(name, options = nil, open = false)
  6. "<#{name}#{tag_options(options.stringify_keys) if options}" + ">")
  7. end
Add Comment
Please, Sign In to add comment