Skip to content

Commit

Permalink
Allow embedding live Bonito.App objects (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHatherly authored Dec 4, 2024
1 parent 8cd68f5 commit c50c42e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"

[weakdeps]
Bonito = "824d6782-a2ef-11e9-3a09-e5662e0c26f8"
CommonMark = "a80b9123-70ca-4bc0-993e-6e3bcb318db6"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"

[extensions]
HypertextTemplatesBonitoExt = "Bonito"
HypertextTemplatesCommonMarkExt = "CommonMark"
HypertextTemplatesHTTPExt = "HTTP"
HypertextTemplatesReviseExt = "Revise"
Expand Down
11 changes: 11 additions & 0 deletions ext/HypertextTemplatesBonitoExt.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module HypertextTemplatesBonitoExt

import Bonito
import HypertextTemplates

function HypertextTemplates.escape_html(io::IO, app::Bonito.App, revise)
show(io, MIME"text/html"(), app)
return nothing
end

end

0 comments on commit c50c42e

Please sign in to comment.