Elixir 的 Web 開發框架,Phoenix 1.1.0 發布
Phoenix 是函數式編程語言 Elixir 的 Web 開發框架。要求 Elixir v1.0.2+
Phoenix 1.1.0 發布,更新內容如下:-
提升
-
[Router] Enable defining routes for custom http methods with a new
matchmacro -
[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 request.
-
[phoenix.digest] The
phoenix.digesttask now digests asset urls in stylesheets automatically -
[Channel] Add
Phoenix.Channel.reply/3to reply asynchronously to a channel push -
[Channel]
code_change/3is now supported to upgrade channel servers -
[Endpoint]
check_originnow supports wildcard hosts, iecheck_origin: ["http://*.example.com"] -
[Endpoint]
check_origintreats invalid origin hosts as missing for misbehaving clients -
[Endpoint] Add
Phoenix.Endpoint.server?/2to check if webserver has been configured to start -
[ConnTest] Add
assert_error_sentto assert an error was wrapped and sent with a given status -
向后不兼容變更
-
[View] The
@innerassign has been removed in favor of explicit rendering withrender/3and the new@view_moduleandview_templateassigns, for example:<%= @inner %>is replaced by<%= render @view_module, @view_template, assigns %>
下載頁面:1.1.0
來自:http://www.oschina.net/news/69063/phoenix-1-1-0