A pure Julia HTML generator. Using do
blocks and keyword arguments, a one-to-one mapping is implemented between the HTML standard and Julia.
html() do
head() do
title("Hello, World!")
end
body() do
div() do
span("Hello", style="color:red;")
text(",")
b("World!")
end
end
end
<!DOCTYPE html>
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
<div>
<span style="color:red;">Hello</span>
,
<b>World!</b>
</div>
</body>
</html>
NativeHTML.jl has not yet been registered but can be installed by running
julia> using Pkg
julia> pkg"add https://github.com/BenLauwens/NativeHTML.jl.git"
-
To discuss problems or feature requests, file an issue. For bugs, please include as much information as possible, including operating system and julia version.
-
To contribute, make a pull request. Contributions should include tests for any new features/bug fixes.