# Example of HTML preprocessor input written in UDL. # # Compile this document to HTML using the preprocessor with command: # cargo run --features="html" --bin udl-html-cmd -- examples/frontpage.html.u <@doctype> <+html> # <+tag> is an opening tag and <-tag> or <-> is a closing tag. <+head> <+title><@title><-> <+script src:script.js><-> <-head> <+body> <+h1 id:main-heading><@title><-> <+p>Hello world!<-> # These two paragraph notations are equivalent.
:{Hello world!}
<+div class:dark-background><+p>
This is a paragraph
with a line break.
<+em class:italic-text>This text is italic.<->
<-><->
<-body>
<-html>