Applying inline attributes to elements in Hlt

require 'hlt'

s = <<EOF
html
  head
    title
  body
    #wrap   {style: 'margin: auto; width: 810px;'}
      div {style: 'float: right'}
        strong
      span.fun
        markdown:
          * {style: 'display:inline'}[home](index.html)
          * [other](hygiene.html)
          * [links](links.html)
EOF

puts Hlt.new(s).to_html

output:

<?xml version='1.0' encoding='UTF-8'?>
<html>
  <head>
    <title></title>
  </head>
  <body>
    <div id='wrap' style='margin: auto; width: 810px;'>
      <div style='float: right'>
        <strong></strong>
      </div>
      <span class='fun'>
        <ul>
          <li style='display:inline'>
            <a href='index.html'>home</a>
          </li>
          <li>
            <a href='hygiene.html'>other</a>
          </li>
          <li>
            <a href='links.html'>links</a>
          </li>
        </ul>
      </span>
    </div>
  </body>
</html>
Tags:
Source:
1734hrs.txt
Published:
09-10-2013 17:34