Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Modified for HTML spec to not generate self-closing tags
- # Examples:
- # * <tt>tag("br") => <br></tt>
- # * <tt>tag("input", { "type" => "text"}) => <input type="text"></tt>
- def tag(name, options = nil, open = false)
- "<#{name}#{tag_options(options.stringify_keys) if options}" + ">")
- end
Add Comment
Please, Sign In to add comment