Roda Web 开发框架

开源网站开源项目 24-03-24 16:37:44

Roda 是一个全新的 Ruby 的 Web 开发框架,通过使用路由树实现更快和 DRY 编码。

示例代码:

#catconfig.rurequire"roda"classApp<RodauseRack::Session::Cookie,secret:ENV['SECRET']routedo|r|#matchesanyGETrequestr.getdo#matchesGET/r.is""dor.redirect"/hello"end#matchesGET/helloorGET/hello/.*r.on"hello"do#matchesGET/hello/worldr.is"world"do"Helloworld!"end#matchesGET/hellor.isdo"Hello!"endendendendendrunApp.app
[Roda Web 开发框架]相关推荐

Rugged Ruby的Git开发包

Rugged 是一个 Git 的 Ruby 开发包,使用 libgit2 API 安装方法: $geminstallrugged 使用方法: requir……...

Notes 小米便签

MiCode 便签是小米便签的社区开源版,由MIUI团队(www.miui.com) 发起并贡献第一批代码,遵循NOTICE文件所……...

FreeType 字体工具

FreeType 字体工具

FreeType 2被设计为一种占用空间小的、高效的、高度可定制的、并且可以产生可移植的高品质输出(符号图像……...

Revel Go 的 全堆栈 Web 框架

Revel 是 Go 语言的框架,其思路完全来自 Java 的 Play Framework。 控制器示例: //app/controllers/app……...

Boom Web 压力测试工具

Boom(已改名为 hey)是一个用 Go 语言编写的 Web 压力测试小工具,类似 ApacheBench。 使用实例: %boom……...

今日开源
  1. iMap 基于 Electron 和 Vue 的旅行地图生成工具

    iMap 基于 Electron 和 Vue 的旅行地图生成工具

    iMap是一款跨平台(MacOS,Linux,Windows),基于 Electron 和 Echarts 的旅行地图生成器 下载 MacOSWindowsLinux 启动项目 #installdependenciesyarn#servewithhotreloadatlocalhost:8090yarnrundev#buildforpr……

    开源软件 2024-05-10

  2. Syncope 数字身份管理

    Syncope 数字身份管理

    Apache Syncope 是用在企业环境的数字身份管理,在JEE技术的实施和Apache 2.0许可下发布的开源系统。 Identity management (or IdM) represents the joint result of business process and IT to manage user dat……

    开源软件 2024-05-10

  3. Giraffe 编码动画 GIF 文件

    Giraffe 是 iPhone 的编码动画 GIF 文件,使用的 GIF 编码库是 ANGif(UIImagePixelSource.m 和 ExportViewController.m 文件 ) ANGif 示例 ANGifEncoder*encoder=[[ANGifEncoderalloc]initWithOutputFile:@"myFi……

    开源软件 2024-05-10

返回顶部小火箭