lib/hanami/view/tilt/slim_adapter.rb in hanami-view-2.1.0.rc1 vs lib/hanami/view/tilt/slim_adapter.rb in hanami-view-2.1.0.rc2
- old
+ new
@@ -4,10 +4,11 @@
module Hanami
class View
module Tilt
# @api private
+ # @since 2.1.0
module SlimAdapter
# Add options to Slim::Engine to match the options from its default generator.
#
# The default generator for Slim::Engine is configurable via an engine option, like so:
#
@@ -27,9 +28,10 @@
# 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 Hanami::View::Tilt
# @api private
+ # @since 2.1.0
Template = Temple::Templates::Tilt(
::Slim::Engine,
use_html_safe: true,
capture_generator: HTMLSafeStringBuffer,
)