Comments (8)
OK, noted, will take a look, thanks!
from prologue.
Is it better if I make a separate repo on my side for examples during developing so I wont have to bother with pull requests until I'm done?
from prologue.
that would mean that all examples will assume that prologue is installed globally
from prologue.
I think you counld use runableExamples for simple examples. runnableExamples will be checked.
from prologue.
You could create a seperate repo in planety organization and rely on global prologue installation.
from prologue.
What did you mean by runableExamples
? I'm kinda missed it.
I suggest I create some repo on my side like prologue-examples
and will gradually fill it with examples (I will do it at my free time). When I finish I can add them to my fork of prologue and will create a pull request to merge.
from prologue.
You could create a seperate repo in planety organization.
Ok great then!
from prologue.
You could ref to this document
https://nim-lang.github.io/Nim/docgen.html
Generally, you can write an example file with rst comments like
# example1.nim
## Using GET, POST, PUT, PATCH, DELETE and OPTIONS
## -----------------
runnableExamples:
proc hello(ctx: Context) {.async.} = discard
doAssert ................
## Parameters in path
## -----------------------
runnableExamples:
proc hello(ctx: Context) {.async.} = discard
doAssert ................
runnableExamples
docs in https://nim-lang.org/docs/system.html#runnableExamples%2Cuntyped
from prologue.
Related Issues (20)
- Improve docs for retrieving settings
- Provide a debug log message when a route is added to prologue
- Error: unhandled exception: cannot read from file HOT 1
- Help with unknown error: "Error: type mismatch: got <Prologue, HttpCode, proc (ctx: Context): Future[system.void]{.locks: <unknown>.}>" HOT 2
- RFC - Add generic proc to parse `FormPart` into a nim object type HOT 1
- Trouble running with --threads:on HOT 2
- Error: You do not have permission to access this file. HOT 2
- Add docs that provide a general approach to testing prologue
- Feature Request: Middleware to map exceptions to response status codes
- Empty memorysession when route contains path params
- Enable subpixel hinting for fonts in the documentation
- FormPart does not handle multiple selections correctly HOT 1
- SIGSEV with --mm:orc and --threads:on HOT 1
- Is there a way to return HTTP 204 No Content without Content-Length and Content-Type headers?
- Getting client IP information (like in Jester) HOT 1
- Cannot serve dynamic websites HOT 2
- Type mismatch error HOT 1
- SIGSEGV: Illegal storage access. (Attempt to read from nil?) HOT 9
- how to access global shared variables in async handler
- [Question] Does Context Request includes json body passed to requests? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prologue.