jbe/bsw@0: --[[-- jbe/bsw@0: ui.heading{ jbe/bsw@0: level = level, -- level from 1 to 6, defaults to 1 jbe/bsw@0: attr = attr, -- extra HTML attributes jbe/bsw@0: content = content -- string or function for content jbe/bsw@0: } jbe/bsw@0: jbe/bsw@0: This function inserts a heading into the active slot. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function ui.heading(args) jbe/bsw@0: return ui.tag{ jbe/bsw@0: tag = "h" .. (args.level or 1), jbe/bsw@0: attr = args.attr, jbe/bsw@0: content = args.content jbe/bsw@0: } jbe/bsw@0: end