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

    233 2022-11-24 《Hanami v1.3 Guides》
    Features Technical notes Template engine independent One output block Method in views Helper Methods Basic usage Method Override CSRF Protection Nested fields Nested coll...
  • Layouts

    163 2022-11-24 《Hanami v1.3 Guides》
    Configure Layout Using Multiple Template Layouts Optional Content Layouts are special views, that render the “fixed” part of the HTML markup. This is the part that doesn’t cha...
  • HTTP/2 Early Hints

    175 2022-11-24 《Hanami v1.3 Guides》
    Setup Other web servers Assets helpers Javascripts Stylesheets Favicon Image Audio Video Asset path Asset URL Demo project A web page may link to external resources s...
  • Compressors

    203 2022-11-24 《Hanami v1.3 Guides》
    Compressors JavaScript Stylesheet Custom Compressors Compressors Assets compression (aka minification) is a process to shrink the file size of a file in order to reduce the ...
  • Routes

    150 2022-11-24 《Hanami v1.3 Guides》
    Routes Routes In order to print the routes defined by all the applications, use: $ bundle exec hanami routes GET , HEAD / Web :: ...
  • Custom Schema

    141 2022-11-24 《Hanami v1.3 Guides》
    Default mode Strict mode We can take data integrity a step further: we can optionally define our own entity internal schema. Custom schema is optional for SQL databases, whi...
  • Numbers

    156 2022-11-24 《Hanami v1.3 Guides》
    Usage Precision Delimiter Separator Hanami offers a helpful way to present numbers via #format_number , a private method available only in views. Usage module Web m...
  • Share Code

    185 2022-11-24 《Hanami v1.3 Guides》
    Prepare Prepare In our settings (apps/web/application.rb ), there is a code block that allows to share the code for all the views of our application. When a view includes the ...
  • Exposures

    152 2022-11-24 《Hanami v1.3 Guides》
    For complex use cases we may want to pass data to views in order to present it to our users. Hanami puts emphasis on explicitness: data isn’t shared between the controller action...
  • Boolean Logic

    204 2022-11-24 《Hanami v1.3 Guides》
    Logic Operators Context Of Execution Predicates Array Emptiness Equality Exclusion Format Greater Than Greater Than Equal Inclusion Less Than Less Than Equal Filled M...