Sha256: d292c47c8bd49b091fe2a27b67bd083620ca3ee6549e3fcd773716bec4e72a10

Contents?: true

Size: 1015 Bytes

Versions: 5

Compression:

Stored size: 1015 Bytes

Contents

default:
  context:
    lang: 'en'
    visitor: 'ant'
    node: 'cleanWater'

each_group:
  src: "<r:nodes do='group' by='kpath'><p do='each_group'><r:kpath/>: <r:each join=', ' do='title'/></p></r:nodes>"
  res: "<p>NP: crocodiles, status title</p><p>NDI: it's a lake</p><p>NRC: The lake we love</p><p>NNP: parc opening</p><p>ND: water</p>"

set_var:
  context:
    date: '2011-05-30'
  src: "<div do='set' next_date='date.advance(:years =&gt; 1)'><span do='next_date' format='%Y-%m-%d'/></div>"
  res: "<div><span>2012-05-30</span></div>"

dom_id_in_each:
  src: "<r:pages in='site limit 2'><li do='each'><r:dom_id/> <p id='this#{dom_id}'/></li></r:pages>"
  tem: "/<li><%= %Q\{list1_#\{var2.zip\}\} %> <p id='<%= \"this#\{%Q\{list1_#\{var2.zip\}\}\}\" %>'></p></li>/"
  res: "<li>list1_29 <p id='thislist1_29'></p></li><li>list1_33 <p id='thislist1_33'></p></li>"

list_else:
  context:
    node: status
  src: "<ul do='posts'><li do='each' do='link'/><li do='else'>hop</li></ul>"
  res: "<ul><li>hop</li></ul>"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zena-1.2.1 test/integration/zafu_compiler/context.yml
zena-1.2.0 test/integration/zafu_compiler/context.yml
zena-1.1.3 test/integration/zafu_compiler/context.yml
zena-1.1.2 test/integration/zafu_compiler/context.yml
zena-1.1.1 test/integration/zafu_compiler/context.yml