TODO in masterview-0.2.2 vs TODO in masterview-0.2.3

- old
+ new

@@ -29,6 +29,21 @@ --#################### ??? can we tweak the admin controller for gem plugin so it puts its empty.rhtml in, say, config/masterview/admin?? => better loc than vendor/plugins/masterview/........ if users are going to customize that guy ---#################### +--#################### + +DSL for creating directives +maybe something like + +event :etag => [:object, :method, :options, :html_options] do + # creates @dcs, @args, @object, @method, @options, @html_options, and we already have attr_value and attrs + # the array of symbols is used for string args found in attr_value + # here we build up the response + outargs = [] + outargs << quote_if_simple_word(@object) + outargs << quote_if_simple_word(@method) + outargs << @options unless @options.to_s.empty? + outargs << @html_options unless @html_options.to_s.empty? + erb_output( 'test '+outargs.join(', ') ) +end \ No newline at end of file