Sha256: d292f09f3588876de6cca07deb7a6d160ca4664344135bbcda72dc0b058a3809

Contents?: true

Size: 1.57 KB

Versions: 3

Compression:

Stored size: 1.57 KB

Contents

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

include_with:
  src: "include_with: <r:include template='/basic/name/title'><h1 do='with' part='title' attr='id'/>"
  res: "include_with: title: <h1 id='lala'>22</h1>"

include_with_empty:
  src: "include_with: <r:include template='/meta/name/title'><r:with part='title'/>"
  res: "include_with: title: "

name_title:
  src: "title: <h1 id='lala' do='show' name='title' attr='title'>blah</h1>"
  res: "title: <h1 id='lala'>status title</h1>"

id_name:
  src: "name_with_name: My name is <b do='void' name='bob'>Bob</b>.<r:void id='comment'> I am happy.</r:void>"
  res: "name_with_name: My name is <b>Bob</b>. I am happy."

include_named:
  src: "include_named: <r:include template='/meta/id/name'><r:with part='bob'>John</r:with></r:include>"
  res: "include_named: name_with_name: My name is <b>John</b>. I am happy."

include_part:
  src: "include_part: <r:include template='/meta/id/name' part='bob'/>"
  tem: "include_part: <b>Bob</b>"

include_part_replace_method:
  src: "include_part: <r:include template='/meta/id/name' part='bob' do='title'/>"
  tem: "include_part: <b><%= @node.prop['title'] %></b>"

# this test is a dummy used by include_context
context_dummy:
  src: "CD: <r:pages in='site' where='title like \"s%\"' name='pages'><r:each join=', ' do='title'/></r:pages>"
  res: "CD: Skins (layout themes), status title"

include_context:
  src: "IC: <r:include template='/meta/context/dummy'><r:with part='pages'><r:each join=' / ' do='title'/></r:with></r:include>"
  res: "IC: CD: Skins (layout themes) / status title"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zena-1.1.1 test/integration/zafu_compiler/meta.yml
zena-1.1.0 test/integration/zafu_compiler/meta.yml
zena-1.0.0 test/integration/zafu_compiler/meta.yml