Sha256: 4235555ed848300f45c3a0b8bed8ce3ad15762017abbae68c63f83ba29de5ff7
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
module Repres::HyperText::ApplicationHelper def library_enabled?(name, options) defined?(options) && options.try(:[], name).present? end def library_version(name, default_version, options) defined?(options) ? options.try(:[], name).try(:[], :version)||default_version : default_version end def hyper_text_icon(options = {}) render partial: 'repres/hyper_text/icon', locals: { options: options } end def hyper_text_meta(options = {}) render partial: 'repres/hyper_text/meta', locals: { options: options } end def hyper_text_script(options = {}) render partial: 'repres/hyper_text/script', locals: { options: options } end def hyper_text_style(options = {}) render partial: 'repres/hyper_text/style', locals: { options: options } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
repres-hyper_text-1.1 | app/helpers/repres/hyper_text/application_helper.rb |