Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ricksterhd123 committed Jan 27, 2024
1 parent cb9b912 commit a1abb0f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,27 @@ TBC...

## TODO
- [x] statically linked mruby + libuv (single binary)
- [ ] proof of concept ruby dsl scripting for callbacks to events, similar to ruby rack config.ru
- [x] proof of concept ruby dsl scripting for callbacks to events, similar to ruby rack config.ru
```rb
get '/' do
'Hello world!'
##
# mruv socket handler function fizzbuzz example
#
def handler(env)
n = env.chomp.to_i
if n > 0 and n < 100 then
if n % 15 == 0 then
"fizzbuzz"
elsif n % 3 == 0 then
"fizz"
elsif n % 5 == 0 then
"buzz"
else
env
end
else
"Must be number between 1 and 99"
end
end

```
- [ ] support libuv TCP/IP and maybe some file stuff

0 comments on commit a1abb0f

Please sign in to comment.