Skip to content

Commit

Permalink
doc(readme): fix karun ex. rendered in single line
Browse files Browse the repository at this point in the history
  • Loading branch information
litlighilit committed Oct 24, 2024
1 parent 2536062 commit af54e4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ here. ``tdiv`` produces a ``<div>`` virtual DOM node.
As you can see, karax comes with its own ``buildHtml`` DSL for convenient
construction of (virtual) DOM trees (of type ``VNode``). Karax provides
a tiny build tool called ``karun`` that generates the HTML boilerplate code that
embeds and invokes the generated JavaScript code::
embeds and invokes the generated JavaScript code:

``nim c karax/tools/karun``
``karax/tools/karun -r helloworld.nim``
```shell
nim c karax/tools/karun
karax/tools/karun -r helloworld.nim
```

Via ``-d:debugKaraxDsl`` we can have a look at the produced Nim code by
``buildHtml``:
Expand Down

0 comments on commit af54e4a

Please sign in to comment.