lib/osheet/mixin.rb in osheet-0.6.0 vs lib/osheet/mixin.rb in osheet-0.7.0

- old
+ new

@@ -23,8 +23,17 @@ ) end def templates instance_variable_get("@t") || [] end + + def partial(name, &block) + instance_variable_set("@p", + (instance_variable_get("@p") || []) << ::Osheet::Partial.new(name, &block) + ) + end + def partials + instance_variable_get("@p") || [] + end end end