Amethyst is a Rails inspired web-framework for Crystal language
What's new:
before_action
macros - now you can specify filters for actionssecure
, httponly
, path
and domain
options for response.cookieSession::Pool
(thanks to @bararchy )button_to
method for viewsWhat's new:
/:controller/:action
params
- all params(GET, POST, path) in one placequery_parameters
, request_parameters
and path_parameters
)keys can be Symbol
or String
- it is no matter from now(params["id"] == params[:id]
)has_keys?(Array)
for parameters. If at least one key is missing, it will return falseHttpMethodNotAllowed
and HttpNotImplemented
Exceptions. In production mode, they will be turned to HttpNotFound
error page.HttpException
raising in controllersexample.com?id=5&name=
, params
will be ""
, not nil
, thanks to @bararchyrequire "amethyst"
, thanks to @paa001What's new:
Wiki will be updated soon
What's new:
Also, there are detailed wiki comes!
First release of Amethyst! Note, this is a preview version, it has poor functionality yet, but it works. The main achievement is framework architecture, that allows Amethyst to grow up fast and unpainly. For now, we have:
As we have a pretty solid base, we can move towards extending a functionality. Goals of next release: