test/integration/zafu_compiler/roles.yml in zena-1.0.0 vs test/integration/zafu_compiler/roles.yml in zena-1.1.0
- old
+ new
@@ -60,9 +60,21 @@
node: letter
src: "<r:vclass do='name'/>"
tem: "<% var1 = @node.virtual_class %><%= var1.name %>"
res: "Letter"
+vclass_icon:
+ src: " <r:Letter do='icon'/>"
+ tem: "<% if var1 = VirtualClass[\"Letter\"] %> <%= var1.prop['icon'] %><% end %>"
+ res: " /images/page.png"
+
+vclass_img:
+ context:
+ node: letter
+ src: "<r:vclass do='img'/>"
+ tem: "<% var1 = @node.virtual_class %><img src='<%= var1.prop['icon'] %>'/>"
+ res: "<img src='/images/page.png'/>"
+
vclass_roles:
context:
node: letter
src: "<r:vclass do='roles' do='each' join=', '><r:name/> (<r:columns do='each' join=',' do='name'/>)</r:vclass>"
tem: "/var1 = @node\.virtual_class .* var2 = var1.sorted_roles/"
\ No newline at end of file