Sha256: a7d8bd3a40406fe418c4805ee41272502f120fb9f359573b3357e321a0698575
Contents?: true
Size: 960 Bytes
Versions: 7
Compression:
Stored size: 960 Bytes
Contents
# frozen_string_literal: true require "temple" require_relative "engine" module Hanami class View # Hanami::View ERB template renderer for Tilt. # # The key features of this ERB implementation are: # # - Auto-escaping any non-`html_safe?` values given to `<%=` ERB expression tags, with # auto-escaping disabled when using `<%==` tags. # - Implicitly capturing and correctly outputting block content without the need for special # helpers. This allows helpers like `<%= form_for(:post) do %>` to be used, with the # `form_for` helper itself doing nothing more special than a `yield`. # # See [Tilt](https://github.com/rtomayko/tilt) for rendering options. # # @example # Hanami::View::ERB::Template.new { "<%= 'Hello, world!' %>" }.render # # @api private # @since 2.1.0 module ERB # ERB Template class Template = Temple::Templates::Tilt(Engine) end end end
Version data entries
7 entries across 7 versions & 1 rubygems