Module: Tagz::Buffer
- Defined in:
- lib/tagz/buffer.rb
Overview
Buffer
When included, Tagz::Buffer allows a tag’s block to have several calls to #tag, which are collected and assigned as the parent tag’s contents.
Examples
tag :div do
tag :label, 'Comments:', :for => :comments
tag :textarea, :id => :comments
end
<div>
<label for="comments">Comments:</label>
<textarea id="comments"></textarea>
</div>
Defined Under Namespace
Classes: Base