Module: Hanami::View::Tilt::SlimAdapter Private

Defined in:
lib/hanami/view/tilt/slim_adapter.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 2.1.0

Constant Summary collapse

Template =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Slim template renderer for Hanami::View.

This differs from the standard Slim::Template by automatically escaping HTML based on a given string’s ‘#html_safe?`, regardless of when “hanami/view/html” is required.

See Also:

Since:

  • 2.1.0

Temple::Templates::Tilt(
  ::Slim::Engine,
  use_html_safe: true,
  capture_generator: HTMLSafeStringBuffer,
)