Sha256: 33b40c79edec85f966b3bf02d3f2a2452235d7c8da7c4ce79e9f4e9674ea8c6d
Contents?: true
Size: 1.51 KB
Versions: 5
Compression:
Stored size: 1.51 KB
Contents
# test_file: ../../../../../test/integration/zafu_compiler_test.rb default: context: node: 'status' visitor: 'anon' src: "<r:tags do='each' join=',' do='name'/>" tem: "/var1 = @node.tags.*var2.name/" res: "blue,sky" listing_no_tags: context: node: 'lion' src: "<r:tags>Nothing</r:tags>" tem: "/if var1 = @node.tags/" res: "" listing_with_link: src: "<r:tags do='each' join=',' do='link' href='main' cat='name'/>" res: "<a href='/en/projects-list/Clean-Water-project/page22.html?cat=blue'>blue</a>,<a href='/en/projects-list/Clean-Water-project/page22.html?cat=sky'>sky</a>" tagged_query: context: cat: 'blue' src: "<r:context select='nodes where tag = #{params[:cat]} in site' do='each' join=', ' do='title'/>" res: "bird, status title" images_tagged_blue: src: "<r:images where='tag=\"blue\"' in='site' do='each' join=', ' do='title'/>" res: "bird" tagged_keys_rubyless: context: node: 'status' src: "<r:tagged do='keys'><r:each join=', ' do='show'/></r:tagged>" res: "/blue, sky|sky, blue/" tag_names: context: node: 'status' src: "<r:tag_names><r:each join=', ' do='show'/></r:tag_names>" res: "blue, sky" checkbox_tagged: src: "<r:input type='checkbox' name='tagged[blue]'/>" res: "<input type='hidden' name='node[tagged][blue]' value=''/><input type='checkbox' name='node[tagged][blue]' value='blue' checked='checked'/>" tag_cloud: src: "<r:void do='tag_cloud from nodes in site' do='each' join=', '><r:name/> (<r:link_count/>)</r:void>" res: "blue (2), sky (1)"
Version data entries
5 entries across 5 versions & 1 rubygems