class Typst::Html
def initialize(input, title: nil, root: ".", font_paths: [], sys_inputs: {})
def initialize(input, title: nil, root: ".", font_paths: [], sys_inputs: {}) super(input, root: root, font_paths: font_paths, sys_inputs: sys_inputs) title = title || File.basename(input, File.extname(input)) self.title = CGI::escapeHTML(title) self.svg = Svg.new(self.input, root: self.root, font_paths: self.font_paths, sys_inputs: sys_inputs) end
def markup
def markup %{ CTYPE html> l> d> le>#{title}</title> ad> y> g.pages.join("<br />")} dy> ml> } end