Sha256: 81b8e8f53b9235b7afb4d6a8940bd8f7f93dcd1f671adabad2ede7ab459ffbe8
Contents?: true
Size: 960 Bytes
Versions: 3
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.0.0 module ERB # ERB Template class Template = Temple::Templates::Tilt(Engine) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-view-2.1.0.rc1 | lib/hanami/view/erb/template.rb |
hanami-view-2.1.0.beta2 | lib/hanami/view/erb/template.rb |
hanami-view-2.1.0.beta1 | lib/hanami/view/erb/template.rb |