Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。要求 Elixir v1.0.2+

示例代码:

defmodule MyApp.Router do
  use Phoenix.Router

  pipeline :browser do
    plug :accepts, ~w(html)
    plug :Fetch_session
  end

  pipeline :api do
    plug :accepts, ~w(JSON)
  end

  scope "/", alias: MyApp do
    pipe_through :browser

    get "/pages/:page", PageController, :show
    get "/files/*path", FileController, :show

    resources "/users", UserController do
      resources "/comments", CommentController
    end
  end

  scope "/api", alias: MyApp.Api do
    pipe_through :api

    resources "/users", UserController
  end
end
Phoenix 1.3.0 发布,Elixir Web 开发框架
Phoenix 1.3.0 已发布,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。改版本专注于改进项目结构,并在 Phoenix.Controller 中添加了一个新的 action_fallback 功能,可以将域中的常见数据结构转换为有效的响应。此外,使用 V2 通道线路协议,解决了某些消息传递模式下的竞争条件以及对序列化格式的改进。具体细节可查

发布于 2017-07-29 23:52:02 | 76 次阅读

phoenix v1.2.5 发布,Web 开发框架
phoenix v1.2.5 发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。更新内容请查看更新日志和发行首页。Source code (zip)Source code (tar.gz)>>>【评论有礼】7月10日-31日在下方评论资讯,即有机会获得 9 活跃积分和开源中国实物周边。活动详情

发布于 2017-07-28 00:33:06 | 108 次阅读

phoenix 1.3.0-rc.3 发布,Web 开发框架
phoenix 1.3.0-rc.3发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。更新内容如下:Enhancements[ChannelTest] Subscribe connect to UserSocket.id to support testing forceful disconnects[Socket] Support static :assigns when defining channel routes[Channel] Add V2 of

发布于 2017-07-24 23:57:35 | 98 次阅读

phoenix 1.3.0-rc.2, 1.2.4 和 1.1.9 发布,Web 开发框架
phoenix 1.3.0-rc.2,1.2.4 和 1.1.9 发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。1.3.0-rc.2 更新如下:Enhancements[Generator] Add new phx.new, phx.new.web, phx.new.ecto project generators with improved application structure and support for umbrella applications[Generat

发布于 2017-05-15 23:55:59 | 142 次阅读

phoenix 1.2.1 发布,Elixir 的 Web 开发框架
Phoenix v1.2.1 发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。以下是该版本值得关注的内容:功能增强[Router] Improve errors for invalid route paths[Plug] Include new development error pagesBug 修复[Endpoint] Fixed issue where endpoint would fail to code reload on next request after an endpoi

发布于 2016-08-12 00:25:05 | 153 次阅读

Phoenix v1.2 正式发布,Elixir 的 Web 开发框架
Phoenix v1.2 正式发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。

发布于 2016-06-24 01:01:44 | 173 次阅读

Phoenix v1.1.6 发布,Elixir 的 Web 开发框架
Phoenix v1.1.6  发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。下载地址:Source code (zip)Source code (tar.gz)

发布于 2016-06-05 00:31:11 | 120 次阅读

Phoenix v1.2.0-rc.1 发布,Elixir 的 Web 开发框架
Phoenix v1.2.0-rc.1  发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。更新内容:Enhancements[View] Add :path and :pattern options to allow wildcard template inclusion as well as customized template directory locationsDeprecations[Watcher] Using the :root en

发布于 2016-06-04 00:24:24 | 115 次阅读

Phoenix v1.2.0-rc.0 发布,Elixir 的 Web 开发框架
Phoenix v1.2.0-rc.0  发布了,Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。主要功能增强:CodeReloader] The lib/ directory is now code reloaded by default along with web/ in development[Channel] Add subscribe/2 and unsubscribe/2 to handle external topic subscriptions for a socket[View] Genera

发布于 2016-04-30 00:33:14 | 105 次阅读

Phoenix v1.1.2 发布,Elixir 的 Web 开发框架
Phoenix v1.1.2 发布,此版本更新内容如下:[Cowboy] Improve log report for errors from the UserSocket[ChannelTest] Add refute_push and refute_reply[Router] Improve error messages when calling Router helpers without matching clauses[phoenix.new] Use brunch 2.1.1 npm integration to load phoenix and phoe

发布于 2016-01-10 00:58:37 | 244 次阅读

Phoenix v1.1.1 发布,Elixir 的 Web 开发框架
Phoenix 是函数式编程语言 Elixir 的 Web 开发框架。此版本是个 bug 修复版本:修复了在phoenix.new 任务 --no-html flag 无法生成 ErrorHelpers 模块的问题下载:phoenix_new-1.1.1.ez

发布于 2015-12-28 00:29:14 | 176 次阅读

Phoenix 1.1.0 发布,Elixir 的 Web 开发框架
Phoenix 1.1.0 发布,更新内容如下:提升[Router] Enable defining routes for custom http methods with a new match macro[CodeReloader] The socket transports now trigger the code reloader when enabled for external clients that only connect to channels without trigger a recompile through the normal page

发布于 2015-12-17 00:23:33 | 230 次阅读


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务