On Fri, 09 Mar 2007 11:47:04 -0500, <[EMAIL PROTECTED]> wrote:

Hi,

Michael Giroux wrote:
On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Anyhow with the proposed VelocityWhitespaceGobbleStructuredTemplates
you could achieve your desired output with either:

import com.myco.MyClass;
public Class AnotherClass {
#foreach( $t in $types )
  #if( $t.name.contains("_") )
      #text( "   Integer $t.name = 0;" )
      #if( $t.type == "static" )
           #text( "   // ignore static type $t.name" )
      #end
  #end
#end
}

But this requires that all output is encapsulated in #text() which pretty
much eliminates the ability to copy/past text from other sources such as
working java programs.

Yes and no - you can intermix the above with the below; thus
leaving your source lines untouched!

BTW, this is basically how XSL does it.

-Rob


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to