How do I create an ordered list in Hoplon?

50 Views Asked by At

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)?

1

There are 1 best solutions below

0
On BEST ANSWER

Try this:

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

You can find more examples here.