Data
Parameters
Value (optional)
Text (optional)
HMTL attributes (optional)
Examples
Example 1: Yield a given block
data id: 'foo', class: 'bar', value: '1300' do
plain 'Data example 1' # optional content
endExample 2: Render options[:text] param
options[:text] paramLast updated
Was this helpful?