Helma Logo
main list history
previous version  overview  next version

Version 5 by hannes on 16. March 2007, 11:12

Helma 1.6 contains a number of Skin/Macro enhancements that aim to make Helma's rendering infrastructure more flexible and powerful powerful.

==== Macro pipes/filterspipes/filters ===

  <% text | truncate max="300" | uppercase %>

Filter functions must have a _filter suffix and get two arguments: the return value of the previous macro/filter in the chain, and a parameter object with the attributs in the filter tag. They are expected to return the filtered macro output.

==== Deep/Reach-through macro invocationinvocation ===

  <% page.author.name %>

==== Nested MacrosMacros ===

  <% page.link content=<% messages.storylink %> %>

==== failmode attributeattribute ===

New Helma macros support a new standard attribute: failmode=silent|verbose.attribute, Default value is silent for request/response/session/param handlersin addition to <code>prefix</code>, <code>suffix</code>, <code>default</code> and verbose for app object handlers (mimicking implicit Helma 1<code>encoding</code>.5 behaviour) 

The <code>failmode</code> attribute, if defined, will cause error messages for failed or unresolved macros to be generated or suppressed.

  <% failLoudly failmode="verbose" %>
  <% failQuitely failmode="silent" %>

The default value is silent for request/response/session/param handlers, and verbose for app object handlers (mimicking implicit Helma 1.5 behaviour).

     removed
     added