Sha256: d4333d5132a42fa55e25d0cfa58915cf2ae6a98c3280811efc06680537f076ed
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
require "mache/node" module Mache # The Component class wraps a fragment of HTML and can be used in any number # of {Page} classes using the `component` macro. A component can contain # elements and other components. # # @example # # class NavItem < Mache::Component # def selected? # node[:class].include?("selected") # end # end # # class Nav < Mache::Component # components :items, NavItem, "a" # end # class Component < Node end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mache-1.0.1 | lib/mache/component.rb |