bung87 / scorper

scorper is a micro and elegant web framework written in Nim
Apache License 2.0
81 stars 5 forks source link

Configuration #6

Open bung87 opened 3 years ago

bung87 commented 3 years ago

compare to others framework in Nim they all use custom object. well, in other languages they usually use .yml .ini some like.

in nim we can use .nims , dotenv package.

may have compile time config and runtime config.

shayanhabibi commented 3 years ago

Runtime configuration really depends on production and its design. Can provide an example in documentation (or link to a guide on making use of text files for variables/runtime constants in nim; maybe jester has one?).

bung87 commented 3 years ago

I haven't look at other frameworks in nim's configuration, Just thought yml is most popular configuration format.