lib/tufte/helpers.rb
module Tufte
module Helpers
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
def self.marginnote(id, note)
<<-HTML.chomp
<label for="#{id}" class="margin-toggle">⊕</label>
<input type="checkbox" id="#{id}" class="margin-toggle"/>
<span class="marginnote">
#{note}
</span>
HTML
end
end
end