Hi,
Another really stupid question, how do I exactly know how to write the template
script, I don't mean script syntax, not the doc on velocity website. Take the
java cartridge template ValueObject.vsl as an example, like the following, how
do I know exactly what java class transform map to? where do I find these
findPackageName, formatHTMLStringAsParagraphs etc.
#set ($packagename = $transform.findPackageName(${class.package}))
package $packagename;
#macro ( generateDocumentation $item $indent)
#foreach ( $tgv in $item.taggedValues )
#if ($tgv.tag == "documentation")
#set ($paras = $transform.formatHTMLStringAsParagraphs($tgv.value))
#foreach ( $par in $paras )
${indent}*
${indent}* <p>
#foreach ( $line in $par.lines )
${indent}* $line
#end
${indent}* </p>
#end
#end
#end
#end
Thanks a lot,
Jie
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1027#1027
Posting to http://forum.andromda.org/ is preferred over posting to the mailing
list!
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user