web-applicationshoplon

How do I create an ordered list in Hoplon?


Given the list:

<ol>
    <li>first</li>
    <li>second</li>
</ol>

How can I create the same in Hoplon script (i.e. in Hoplon syntax)?


Solution

  • Try this:

    (ol
      (li :text "first")
      (li :text "second"))
    

    You can find more examples here.