Sha256: 4afb7107fe56b4540858b51cde578acb74da179cdd10381287162990b322088e
Contents?: true
Size: 479 Bytes
Versions: 17
Compression:
Stored size: 479 Bytes
Contents
import { htmlAttributes } from "../html/html-attributes"; export class OrderedList { attributes: Record<string, any>; children: any[]; constructor(attributes: Record<string, any> = {}) { this.children = []; this.attributes = attributes; } add(child: any): this { this.children.push(child); return this; } get render(): string { return `<ol ${htmlAttributes(this.attributes)}>${this.children.map(child => child.render).join("")}</ol>`; } }
Version data entries
17 entries across 17 versions & 1 rubygems