JohnAD / jesterwithplugins

A sinatra-like web framework for Nim. This is a temporary fork for plugin support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸƒ Jester (with plugins) πŸƒ

The sinatra-like web framework for Nim. Jester provides a DSL for quickly creating web applications in Nim.

This particular version is a fork of the main-line jester for the testing of the "plugin" functions. It will eventually be merged back into jester. If you are not using the plugins, I recommend using the main jester library. See https://nimble.directory/pkg/jester

Install

It is best to install using the nimble tool:

$ nimble install jesterwithplugins

Example Of Use

# example.nim
import jesterwithplugins

routes:
  get "/":
    resp "<html><body><h1>Hello World!</h1></body></html>"

Compile and run with:

$ nim c -r example.nim

View with a browser at: localhost:5000

[WIP] Plugins

For using plugins, see plugins.

To develop a plugin, see plugin development.

Further documentation

TBD

About

A sinatra-like web framework for Nim. This is a temporary fork for plugin support.

License:MIT License


Languages

Language:Nim 100.0%Language:HTML 0.0%