The sinatra-like web framework for Nim. Jester provides a DSL for quickly creating web applications in Nim. All routes must be inside a routes block. Routes will be executed in the order that they are declared. So be careful when halting. The route path may contain a special pattern or just a static string. Special patterns are almost identical to Sinatra's, the only real difference is the use of @ instead of the :. In this case you might want to make the leading '/' optional too, you can do this by changing the pattern to "/hello/?@name?". This is useful because Jester will not match "/hello" if the leading '/' is not made optional. Route bodies all have an implicit request object. This object is documented in jester.nim and documentation can be generated by executing nim doc jester.nim. It is possible not to use the routes macro and to do the routing yourself. You can do this by writing your own match procedure. Take a look at example2 for an example on how to do this.

Features

  • DSL for quickly creating web applications in Nim
  • All routes must be inside a routes block
  • Routes will be executed in the order that they are declared. So be careful when halting
  • The patterns in Jester are currently a bit more limited, there is no wildcard patterns
  • Regex can also be used as a route pattern
  • Jester supports conditions

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Jester

Jester Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Jester!

Additional Project Details

Registered

2022-11-28