书栈网 · BookStack 本次搜索耗时 0.015 秒,为您找到 117 个相关结果.
  • Templates

    267 2022-11-24 《Hanami v1.3 Guides》
    Naming Nested Templates Custom Template Engines Directory A template is a file that describes the body of a response. It is rendered by bounding the context of a view and us...
  • Basic Usage

    172 2022-11-24 《Hanami v1.3 Guides》
    Requests Handling View Rendering Bypass Rendering Initialization Requests Handling In the previous section , we generated an action. Now let’s use it. First, we check our r...
  • Overview

    170 2022-11-24 《Hanami v2.0 Guides》
    Actions Actions In a Hanami application, actions are responsible for handling HTTP requests. Actions decide what HTTP response your application returns for a given request - it...
  • Basic Usage

    159 2022-11-24 《Hanami v1.3 Guides》
    Sender & Recipient Locals Scope In the previous section , we generated a mailer, let’s use it. Sender & Recipient Firstly, we need to specify sender and recipient(s) and the...
  • Basic Usage

    165 2022-11-24 《Hanami v1.3 Guides》
    Path matching Fixed Matching Variables Variables Constraints Optional Tokens Wildcard Matching Named Routes Routing Helpers Namespaces Redirects Path matching In our i...
  • Sessions

    182 2022-11-24 《Hanami v2.0 Guides》
    Using sessions Session adapters Sessions are disabled by default. To enable sessions, add a config like the following to your app: # config/app.rb module Bookshelf ...
  • Cookies

    190 2022-11-24 《Hanami v2.0 Guides》
    Cookie configuration Removing cookies Disabling cookies Actions can set cookies on outgoing requests via the response object. module Bookshelf module Actions ...
  • Usage

    274 2022-11-24 《Hanami v2.0 Guides》
    Basic usage Logging data Logging exceptions Hanami logger is compatible with the stdlib Logger but it supports structured logging by default. This means that you are encourag...
  • MIME Types

    242 2022-11-24 《Hanami v1.3 Guides》
    Default Rendering View For Specific Format A view can handle several MIME Types. Before diving into this subject, please consider to read how actions handle MIME Types . It’s ...
  • Rake Tasks

    224 2022-11-24 《Hanami v1.3 Guides》
    Environment Example Test / Spec Ruby Server Hosting Ecosystem Compatibility Custom rake tasks Hanami ships with default Rake tasks that can be used as prerequisites by devel...