How do I create an ordered list in Hoplon?

40 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 answers

0
Raichman Sergey On BEST ANSWER

Try this:

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

You can find more examples here.