Sha256: 37d1288dc16df1f982daa19c00736d6915a442471545e1b5c00833f117d6a52f
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
# frozen_string_literal: true module Staticky module Phlex module ViewHelpers def link_to(text, href, **, &block) # rubocop:disable Metrics/ParameterLists block ||= proc { text } href = Staticky.router.resolve(href) href = href.url unless href.is_a?(String) a(href:, **, &block) end end end end Phlex::SGML.prepend Staticky::Phlex::ViewHelpers
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
staticky-0.1.1 | lib/staticky/phlex/view_helpers.rb |