Sha256: bbe6ffe82ace170c9f2e9b0ac092f4c4daed5b00c3e8fd9434ab7ee2b2404fda
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
some_template: src: "<div id='a'>a</div><div id='b' do='link'>b</div>" tem: "<div id='a'>a</div><div id='b'><%= make_link(@node) %></div>" include_with_part: # part 'a' is moved around # and we overwrite 'link' method with 'void' src: "<r:include template='/some/template'><r:with part='a'/><r:with part='b' do='void'>new b:<r:include template='/some/template' part='a'/></r:with></r:include>" tem: "<div id='b'>new b:<div id='a'>a</div></div>" include_with_part_change_class: # part 'a' is moved around src: "<r:include template='/some/template'><div class='foobar' do='with' part='b'>new b</div></r:include>" tem: "<div id='a'>a</div><div id='b' class='foobar'><%= make_link(@node) %></div>" include_missing_part: # part 'a' is moved around src: "<r:include template='/some/template' part='bad'/>" tem: "<span class='parser_error'><span class='method'>include</span> <span class='message'>'bad' not found in template '/some/template'</span></span>" missing_template: src: "<r:include template='Foo'/>" tem: "/template 'Foo' not found/" include_part: src: "xxx <r:include template='/some/template' part='b'/>" tem: "xxx <div id='b'><%= make_link(@node) %></div>"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zafu-0.7.8 | test/zafu/meta.yml |