Karax. Single page applications for Nim.
Find a file
2017-04-15 11:17:12 +02:00
docs fixed .component macro 2017-04-14 20:33:03 +02:00
examples fixed components; added playerapp example 2017-04-14 20:49:42 +02:00
experiments added missing files 2017-04-14 20:51:37 +02:00
src added more event kinds 2017-04-15 11:17:12 +02:00
tests cleanup karax project for public consumption 2017-04-13 09:40:14 +02:00
.gitignore first example with virtual dom; virtual dom still buggy 2017-03-30 23:52:47 +02:00
karax.nimble added nimble file 2017-04-13 10:06:00 +02:00
readme.rst added what's left to do 2017-04-14 20:59:25 +02:00

Karax -- Single page applications in Nim
========================================

Karax is a framework for developing single page applications in Nim.
It's still in heavy development, so keep in mind that the API is subject
to change.

To try it out, run::

  cd examples/todoapp
  nim js todoapp.nim
  open todoapp.html

  cd ../mediaplayer
  nim js playerapp.nim
  open playerapp.html

It uses a virtual DOM like React, but is much smaller than the existing
frameworks plus of course it's written in Nim for Nim. No external
dependencies! And thanks to Nim's whole program optimization only what
is used ends up in the generated JavaScript code.


Goals
=====

- Leverage Nim's macro system to produce a framework that allows
  for the development of applications that are boilerplate free.
- Keep it small, keep it fast, keep it flexible.


Todo
====

- Expose a way to access the attached real DOM element so that scroll
  positions etc can be used.
- Expose a nice API to do Ajax requests.