3 \| "
tem: '/params\[:filter\] \|\| \"pages in site\"/'
res: ''
query_eval_in_sub_context:
# Live compile and query from params
context:
visitor: lion
node: cleanWater
scope: 'self'
# Should pass binding so that local var3 is recognized
src: ""
res: 'crocodiles, Nice Bananas, status title'
query_eval_find_one:
# Live compile and query from params
context:
visitor: lion
node: cleanWater
src: ""
tem: "/<%= zen_path\(var1\) %>/"
res: "/crocodiles/"
query_count:
tem: '<%= query("Page", "@node", "pages in site", :type => :count) %>'
res: '19'
simple_select:
src: ""
tem: '/<%=h var1.attributes\["ti"\] %>/'
res: "crocodiles
"
select_with_type:
src: ""
tem: '/format_date\(var1.rcast\("ti", :time\)/'
res: "11.04.2006
"
select_in_from:
src: ":
"
tem: '/<%=h var2.attributes\["pt"\] %>: <%=h var2.attributes\["it"\] %>/'
res: "a wiki with Zena: bird, a wiki with Zena: flower, Clean Water project: it's a lake
"
select_in_from_saved:
src: ":
"
tem: '/<%=h var3.attributes\["pt"\] %>: <%=h var3.attributes\["it"\] %>/'
res: "a wiki with Zena: bird, a wiki with Zena: flower, Clean Water project: it's a lake
"
select_group:
src: ":
"
res: "a wiki with Zena: bird, flower / Clean Water project: it's a lake
"
select_group_count:
src: ":
"
res: "a wiki with Zena: 2, Clean Water project: 1
"
select_group_count_having:
src: ":
"
res: "a wiki with Zena: 2
"
query_errors:
context:
c: 'badaboum'
src: ""
res: "nodes in badaboum Invalid scope 'badaboum'."
query_count:
context:
c: 'badaboum'
src: ""
tem: "/:find => :count/"
res: "19"
query_count_string_context:
context:
c: 'badaboum'
src: ""
tem: '/.Node., "@node".*:find => :count/'
res: "19"
find_with_rubyless:
src: ""
res: "Autumn Tree, bird"
find_loads_class:
src: "
"
tem: "<% if var1 = find_node_by_zip(11) %><%=h var1.prop['origin'] %>
<% end %>"
query_on_vclass:
# typical syntax error (should be Contact?)
src: ""
# does the query on last @node
tem: "/Node.do_find/"
res: 'Zena the wild CMS, people
'