bin: add a html renderer utility function

Links in the provided html like thus: <a href="next">bar</a> runs the
command 'next' in the internal commandline.
parent dddc224c
......@@ -166,3 +166,12 @@ function contrasty_stroke()
cr:set_line_width (y1)
cr:stroke ()
end
function html(xhtml)
mrg:xml_render(nil, function(event, link)
ffi.C.argvs_eval(link)
end,
NULL, xhtml)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment