Sha256: 68c660a042fcaeb61783e91386eed101d813ee8d04d918314d4e9ec1659ad326

Contents?: true

Size: 823 Bytes

Versions: 3

Compression:

Stored size: 823 Bytes

Contents

# test_file: ../../../../test/helpers/zena_parser_test.rb
default:
  context:
    node: 'status'
  src: "<r:tags do='each' join=',' do='[name]'/>"
  tem: "/list1 = @node.tags.*var1.name/"
  res: "blue,sky"

listing_no_tags:
  context:
    node: 'lion'
  src: "<r:tags>Nothing</r:tags>"
  tem: "/list1 = @node.tags/"
  res: ""

listing_with_link:
  src: "<r:tags do='each' join=',' do='link' cat='[name]'/>"
  res: "<a href='/oo/projects/cleanWater/page22.html?cat=blue'>blue</a>,<a href='/oo/projects/cleanWater/page22.html?cat=sky'>sky</a>"

tagged_query:
  context:
    cat: 'blue'
  src: "<r:context select='nodes where tag = param:cat in site' do='each' join=', ' do='[name]'/>"
  res: "bird, status"

images_tagged_blue:
  src: "<r:images where='tag=\"blue\"' in='site' do='each' join=', ' do='[name]'/>"
  res: "bird"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zena-0.15.2 bricks/tags/test/zafu/tags.yml
zena-0.15.1 bricks/tags/test/zafu/tags.yml
zena-0.15.0 bricks/tags/test/zafu/tags.yml