Sha256: a92d86dbd9bd9e9af2646f9c8ca7b83a7e4e08cfed1ee0e4f4607543d54c7765
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
- if pagelet_request? || pagelet_options.skip_container = content_for?(:content) ? yield(:content) : yield - else ruby: html_opts = pagelet_options.html || {} classes = html_opts.fetch(:class, '').split(' ') classes << "pagelet-#{controller_name}" classes << "pagelet-#{controller_name}-#{action_name}" html_opts[:id] ||= pagelet_default_id html_opts[:class] = classes.join(' ') html_opts['data-pagelet-container'] = true encode_data = pagelet_options.original_options.to_h.except('remote') html_opts['data-pagelet-options'] = PageletRails::Encryptor.encode(encode_data) if pagelet_options.ajax_group html_opts['data-pagelet-group'] = pagelet_options.ajax_group end div *html_opts = content_for?(:content) ? yield(:content) : yield
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pagelet_rails-0.1.1 | app/views/layouts/pagelet_rails/container.html.slim |
pagelet_rails-0.1.0 | app/views/layouts/pagelet_rails/container.html.slim |