logo
首页技术栈工具库讨论
charlotte

charlotte

Charlotte is a Web Framework. It takes a little from Rails and a little from Sinatra and does a few things it's own way. The goal is to be light weight, fun and get out of your way. defmodule Controller do use Charlotte.Handlers.HTTP def routes do [ {"/path", :path}, {"/path/:part", :path_with_part} ] end def path("GET", _params, conn) do render [message: "hello from path"], conn end def path(verb, _params, conn) do respond 405, {"Allowed", "GET"}, "#{verb} not allowed", conn end end
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
标签
根据用户添加的标签生成
暂无标签