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