incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Strässer (JIRA) <>
Subject [jira] Created: (CLEREZZA-29) Wish for Scala function
Date Tue, 15 Dec 2009 08:06:18 GMT
Wish for Scala function

                 Key: CLEREZZA-29
             Project: Clerezza
          Issue Type: Improvement
         Environment: Scala Pages
            Reporter: Oliver Strässer

can you provide a funtion in scala wich checks a given property, and if the property is set,
the return value is the string representation of this property. 

if the value isn't set, the returnvalue is an "" string .

i don't want to wrote everytime the folloeing code: 
{if((res/DC.title).length > 0){res/dc("title")*}else {""}}
or : 
{if((res/dc("description")).length > 0){XML.loadString(res/dc("description")*)}else {""}}

To Functions (One for XML and one for normal String is ok)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message