module Tufte::Helpers

Public Class Methods

marginnote(id, note) click to toggle source
# File lib/tufte/helpers.rb, line 13
    def self.marginnote(id, note)
      <<-HTML.chomp
<label for="#{id}" class="margin-toggle">&#8853;</label>
<input type="checkbox" id="#{id}" class="margin-toggle"/>
<span class="marginnote">
#{note}
</span>
      HTML
    end
sidenote(id, note) click to toggle source
# File lib/tufte/helpers.rb, line 3
    def self.sidenote(id, note)
        <<-HTML.chomp
<label for="#{id}" class="margin-toggle sidenote-number"></label>
<input type="checkbox" id="#{id}" class="margin-toggle"/>
<span class="sidenote">
#{note}
</span>
        HTML
    end